From: Bob Wilson Date: Mon, 11 Jun 2007 23:46:32 +0000 (+0000) Subject: * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4ba714a1c5e82ceb4d665961318f3e5fd8f3e000;p=pf3gnuchains%2Fpf3gnuchains3x.git * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO for .xt_except_table. (OTHER_RELRO_SECTIONS): New. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 85f0db4842..d31157e889 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2007-06-11 Bob Wilson + + * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO + for .xt_except_table. + (OTHER_RELRO_SECTIONS): New. + 2007-06-11 Sterling Augustine Bob Wilson diff --git a/ld/emulparams/elf32xtensa.sh b/ld/emulparams/elf32xtensa.sh index 216d761804..185da49dfb 100644 --- a/ld/emulparams/elf32xtensa.sh +++ b/ld/emulparams/elf32xtensa.sh @@ -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} :