[PATCH] C6X unwinding linker script

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

[PATCH] C6X unwinding linker script

Paul Brook
The attached patch adds the C6X ABI defined unwinding table sections to the
default linker scripts.

Ok?

Paul

2011-04-07  Paul Brook  <[hidden email]>

        ld/
        * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
        for unwinding tables.


diff --git a/ld/emulparams/elf32_tic6x_le.sh b/ld/emulparams/elf32_tic6x_le.sh
index 335bc0f..4911081 100644
--- a/ld/emulparams/elf32_tic6x_le.sh
+++ b/ld/emulparams/elf32_tic6x_le.sh
@@ -31,6 +31,11 @@ RODATA_NAME="const"
 SDATA_NAME="neardata"
 SBSS_NAME="bss"
 BSS_NAME="far"
+OTHER_READONLY_SECTIONS="
+  .c6xabi.extab ${RELOCATING-0} : { *(.c6xabi.extab${RELOCATING+* .gnu.linkonce.c6xabiextab.*}) }
+  ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
+  .c6xabi.exidx ${RELOCATING-0} : { *(.c6xabi.exidx${RELOCATING+* .gnu.linkonce.c6xabiexidx.*}) }
+  ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
 OTHER_SDATA_SECTIONS=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.*}) }"
 OTHER_READONLY_RELOC_SECTIONS="
   .rel.rodata   ${RELOCATING-0} : { *(.rel.rodata${RELOCATING+ .rel.rodata.*}) }
--
1.7.4.1

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] C6X unwinding linker script

Nick Clifton
Hi Paul,

> 2011-04-07  Paul Brook<[hidden email]>
>
> ld/
> * emulparams/elf32_tic6x_le.sh: Define OTHER_READONLY_SECTIONS
> for unwinding tables.

Approved - please apply.

Cheers
   Nick