This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
H8/300 patches (4/8) ldscripts
- From: Yoshinori Sato <ysato at users dot sourceforge dot jp>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: Fri, 05 Mar 2004 01:42:08 +0900
- Subject: H8/300 patches (4/8) ldscripts
description
- gcc-3.3 support
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
Index: hal/h8300/h8300h/current/src/h8300_h8300h.ld
===================================================================
RCS file: /cvsroot/ecos-h8/ecos/packages/hal/h8300/h8300h/current/src/h8300_h8300h.ld,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 h8300_h8300h.ld
--- hal/h8300/h8300h/current/src/h8300_h8300h.ld 27 Nov 2003 14:27:21 -0000 1.1.1.5
+++ hal/h8300/h8300h/current/src/h8300_h8300h.ld 4 Mar 2004 13:31:27 -0000
@@ -45,11 +45,11 @@
#ifdef EXTRAS
INPUT(extras.o)
#endif
-//#if (__GNUC__ >= 3)
-//GROUP(libtarget.a libgcc.a libsupc++.a)
-//#else
+#if (__GNUC__ >= 3)
+GROUP(libtarget.a libgcc.a libsupc++.a)
+#else
GROUP(libtarget.a libgcc.a)
-//#endif
+#endif
#define ALIGN_LMA 4
#define FOLLOWING(_section_) AT ((LOADADDR (_section_) + SIZEOF (_section_) + ALIGN_LMA - 1) & ~ (ALIGN_LMA - 1))
@@ -95,7 +95,7 @@
{ FORCE_OUTPUT; *(.gcc_except_table) } \
> _region_
-#if defined(CYGHWR_HAL_H8300_VECTOR_ADDRESS)
+#if defined(CYGSEM_HAL_H8300_VECTOR_HOOK)
#define SECTION_int_hook_table(_region_, _vma_, _lma_) \
.int_hook_table CYGHWR_HAL_H8300_VECTOR_ADDRESS : _lma_ \
{ CYG_LABEL_DEFN(__int_hook_start) = ABSOLUTE (.); \
@@ -133,7 +133,7 @@
#define SECTION_bss(_region_, _vma_, _lma_) \
.bss _vma_ : _lma_ \
{ CYG_LABEL_DEFN(__bss_start) = ABSOLUTE (.); \
- *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
+ *(.scommon) *(.dynbss) *(.bss.*) *(COMMON) \
CYG_LABEL_DEFN(__bss_end) = ABSOLUTE (.); } \
> _region_
Index: hal/h8300/h8s/current/src/h8300_h8s.ld
===================================================================
RCS file: /cvsroot/ecos-h8/ecos/packages/hal/h8300/h8s/current/src/h8300_h8s.ld,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 h8300_h8s.ld
--- hal/h8300/h8s/current/src/h8300_h8s.ld 27 Nov 2003 14:27:24 -0000 1.1.1.1
+++ hal/h8300/h8s/current/src/h8300_h8s.ld 4 Mar 2004 13:31:34 -0000
@@ -93,7 +93,7 @@
{ FORCE_OUTPUT; *(.gcc_except_table) } \
> _region_
-#if defined(CYGHWR_HAL_H8300_VECTOR_ADDRESS)
+#if defined(CYGSEM_HAL_H8300_VECTOR_HOOK)
#define SECTION_int_hook_table(_region_, _vma_, _lma_) \
.int_hook_table CYGHWR_HAL_H8300_VECTOR_ADDRESS : _lma_ \
{ CYG_LABEL_DEFN(__int_hook_start) = ABSOLUTE (.); \
@@ -130,7 +130,7 @@
#define SECTION_bss(_region_, _vma_, _lma_) \
.bss _vma_ : _lma_ \
{ CYG_LABEL_DEFN(__bss_start) = ABSOLUTE (.); \
- *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
+ *(.scommon) *(.dynbss) *(.bss.*) *(COMMON) \
CYG_LABEL_DEFN(__bss_end) = ABSOLUTE (.); } \
> _region_