diff options
author | Alan Modra <amodra@gmail.com> | 2015-01-20 17:11:21 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-01-20 19:48:54 +1030 |
commit | 3e2b0f3116a46c8a9a6ffbcb5ae4847b6601467a (patch) | |
tree | 37d5ef4aa1fb3e6f3f47468be1f9ef21905b30f8 /ld/emulparams | |
parent | 03d5b77300e7f62ba87fb4cd82d4aed83f9a3cd2 (diff) | |
download | gdb-3e2b0f3116a46c8a9a6ffbcb5ae4847b6601467a.zip gdb-3e2b0f3116a46c8a9a6ffbcb5ae4847b6601467a.tar.gz gdb-3e2b0f3116a46c8a9a6ffbcb5ae4847b6601467a.tar.bz2 |
Reorder powerpc64 sections for -z relro
More sections can be read-only after relocation. .opd is an obvious
candidate.
* emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
(OTHER_RELRO_SECTIONS_2): ..here, new define.
* scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf64ppc.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/emulparams/elf64ppc.sh b/ld/emulparams/elf64ppc.sh index 355e046..556fbf5 100644 --- a/ld/emulparams/elf64ppc.sh +++ b/ld/emulparams/elf64ppc.sh @@ -37,5 +37,6 @@ OTHER_GOT_RELOC_SECTIONS=" .rela.branch_lt ${RELOCATING-0} : { *(.rela.branch_lt) }" OTHER_READWRITE_SECTIONS=" .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) } - .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) } .branch_lt ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.branch_lt) }" +OTHER_RELRO_SECTIONS_2=" + .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }" |