This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
arm linker script tweak
- From: Mark Salter <msalter at redhat dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 27 Aug 2002 23:03:35 -0400
- Subject: arm linker script tweak
Index: hal/arm/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/ChangeLog,v
retrieving revision 1.75
diff -u -p -5 -r1.75 ChangeLog
--- hal/arm/arch/current/ChangeLog 22 Aug 2002 12:33:42 -0000 1.75
+++ hal/arm/arch/current/ChangeLog 28 Aug 2002 03:02:08 -0000
@@ -1,5 +1,9 @@
+2002-08-27 Mark Salter <msalter@redhat.com>
+
+ * src/arm.ld: Undefine arm to avoid problem with .note.arm.ident.
+
2002-08-22 Mark Salter <msalter@redhat.com>
* src/arm.ld: Add .note.arm.ident section used by tools to identify
architecture variants.
Index: hal/arm/arch/current/src/arm.ld
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/src/arm.ld,v
retrieving revision 1.20
diff -u -p -5 -r1.20 arm.ld
--- hal/arm/arch/current/src/arm.ld 22 Aug 2002 12:33:42 -0000 1.20
+++ hal/arm/arch/current/src/arm.ld 28 Aug 2002 03:02:08 -0000
@@ -75,10 +75,12 @@ OUTPUT_FORMAT(elf32-bigarm)
#define ALIGN_LMA 4
#define FOLLOWING(_section_) AT ((LOADADDR (_section_) + SIZEOF (_section_) + ALIGN_LMA - 1) & ~ (ALIGN_LMA - 1))
#define LMA_EQ_VMA
#define FORCE_OUTPUT . = .
+// Some versions of gcc define "arm" which causes problems with .note.arm.ident
+#undef arm
#define SECTIONS_BEGIN \
/* Debug information */ \
.debug_aranges 0 : { *(.debug_aranges) } \
.debug_pubnames 0 : { *(.debug_pubnames) } \
.debug_info 0 : { *(.debug_info) } \