* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
authorBob Wilson <bob.wilson@acm.org>
Mon, 11 Jun 2007 23:46:32 +0000 (23:46 +0000)
committerBob Wilson <bob.wilson@acm.org>
Mon, 11 Jun 2007 23:46:32 +0000 (23:46 +0000)
for .xt_except_table.
(OTHER_RELRO_SECTIONS): New.

ld/ChangeLog
ld/emulparams/elf32xtensa.sh

index 85f0db48424dfd39a4493ff949b03cd64006c8ec..d31157e88986a71bbcd1c4d038406abc09d25d6e 100644 (file)
@@ -1,3 +1,9 @@
+2007-06-11  Bob Wilson  <bob.wilson@acm.org>
+
+       * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
+       for .xt_except_table.
+       (OTHER_RELRO_SECTIONS): New.
+
 2007-06-11  Sterling Augustine  <sterling@tensilica.com>
            Bob Wilson  <bob.wilson@acm.org>
        
index 216d7618040669a2c591d448970a451ec5d63e99..185da49dfbbc2e87cee5031c3ec7957bda305224 100644 (file)
@@ -18,7 +18,10 @@ PLT="/* .plt* sections are embedded in .text */"
 GOT=".got          ${RELOCATING-0} : { *(.got) }"
 OTHER_READONLY_SECTIONS="
   .got.loc      ${RELOCATING-0} : { *(.got.loc) }
-  .xt_except_table ${RELOCATING-0} : { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
+  .xt_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
+"
+OTHER_RELRO_SECTIONS="
+  .xt_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.xt_except_table${RELOCATING+ .xt_except_table.* .gnu.linkonce.e.*})) }
 "
 OTHER_READWRITE_SECTIONS="
   .xt_except_desc ${RELOCATING-0} :