[patch] Merge ARM.attribute sections.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] Merge ARM.attribute sections.

Paul Brook
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  <[hidden email]>

        * 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 = .; }
Reply | Threaded
Open this post in threaded view
|

Re: [patch] Merge ARM.attribute sections.

Nick Clifton
Hi Paul,

> 2005-10-19  Paul Brook  <[hidden email]>
>
> * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.

Approved - please apply.

Cheers
   Nick