This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] Merge ARM.attribute sections.
- From: Paul Brook <paul at codesourcery dot com>
- To: Undisclosed.Recipients: ;
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 19 Oct 2005 01:54:31 +0100
- Subject: [patch] Merge ARM.attribute sections.
The attached patch adds the .ARM.attributes section to the default linker
script. This avoids creating .ARM.attribute.N output sections.
Tested with cross to arm-none-eabi.
Ok?
Paul
2005-10-19 Paul Brook <paul@codesourcery.com>
* emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
Index: ld/emulparams/armelf.sh
===================================================================
RCS file: /var/cvsroot/src-cvs/src/ld/emulparams/armelf.sh,v
retrieving revision 1.16
diff -u -p -r1.16 armelf.sh
--- ld/emulparams/armelf.sh 5 Aug 2005 04:29:56 -0000 1.16
+++ ld/emulparams/armelf.sh 19 Oct 2005 00:29:54 -0000
@@ -10,7 +10,8 @@ OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue
OTHER_BSS_SYMBOLS='__bss_start__ = .;'
OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
OTHER_END_SYMBOLS='__end__ = . ;'
-OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
+OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
+ .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) }'
OTHER_READONLY_SECTIONS="
.ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
${RELOCATING+ __exidx_start = .; }