LD/testsuite: Conditionalize the placement of `.dynamic' in GNU_RELRO
authorMaciej W. Rozycki <macro@imgtec.com>
Tue, 18 Jul 2017 16:20:30 +0000 (17:20 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Tue, 18 Jul 2017 16:20:30 +0000 (17:20 +0100)
commit9a0f1d5099fa375299115afaa1ef3acbddc47f51
tree98dde70f49a859a77a6fb0dad2c5cf2ab907aa0b
parentde194d8575765da6c7905d09b8675c59fad035e9
LD/testsuite: Conditionalize the placement of `.dynamic' in GNU_RELRO

Complement commit d345186d0535 ("Check if GNU_RELRO segment is is
generated") and exclude the presence of a `.dynamic' section from
implying the creation of a GNU_RELRO segment for targets which place the
section in the (read-only) text segment, and therefore cannot have the
section assigned to GNU_RELRO and neither it would make sense.

Currently the list of such targets consists of 64-bit HPPA and
non-VxWorks MIPS targets, as determined by looking for TEXT_DYNAMIC
being set across ld/emulparams/* and then verified by examining default
linker scripts produced in a `--enable-targets=all' build.

ld/
* testsuite/ld-elf/binutils.exp (binutils_test): Make the
expectation for `.dynamic' in GNU_RELRO segment target-specific.
ld/ChangeLog
ld/testsuite/ld-elf/binutils.exp
This page took 0.035213 seconds and 4 git commands to generate.