Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluation
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jun 2012 13:23:51 +0000 (13:23 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jun 2012 13:23:51 +0000 (13:23 +0000)
commit17d6eea5d50485078affbb12b895e3e508366ba9
treeb336d0ebf44afd496253494fe12c758571bdf749
parent2e81047f911b9181987439ec157dc3ed1e567393
Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluation

ld/

PR ld/14215
* ldexp.c (fold_name <SIZEOF, ALIGNOF>): Allow forward section
references.
* emulparams/elf32_x86_64.sh (SEPARATE_GOTPLT): Depend on size of
.got.plt.
* emulparams/elf32mb_linux.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf32tilegx.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf32tilepro.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf64tilegx.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_k1om.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_l1om.sh (SEPARATE_GOTPLT): Likewise.
* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Likewise.

ld/testsuite/

PR ld/14215
* ld-i386/i386.exp: Run pr14215.
* ld-x86-64/x86-64.exp: Likewise.

* ld-i386/pr14215.d: New file.
* ld-i386/pr14215.s: Likewise.
* ld-x86-64/pr14215.d: Likewise.
* ld-x86-64/pr14215.s: Likewise.
18 files changed:
ld/ChangeLog
ld/emulparams/elf32_x86_64.sh
ld/emulparams/elf32mb_linux.sh
ld/emulparams/elf32tilegx.sh
ld/emulparams/elf32tilepro.sh
ld/emulparams/elf64tilegx.sh
ld/emulparams/elf_i386.sh
ld/emulparams/elf_k1om.sh
ld/emulparams/elf_l1om.sh
ld/emulparams/elf_x86_64.sh
ld/ldexp.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr14215.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr14215.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr14215.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr14215.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp