]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: Use --no-rosegment to ld for PR ld/22393 tests
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Sep 2024 19:44:22 +0000 (03:44 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Sep 2024 21:03:18 +0000 (05:03 +0800)
commitae6a4c3f1d5caeba962d2c1748a8d2b3bebb1007
tree5d144c068ac0d40a35e4657fd22163a5b23434f4
parent59d41830a3dae0120e0d223f91241ad40e7ca737
ld: Use --no-rosegment to ld for PR ld/22393 tests

The commit

bf6d7087de0 ld: Move the .note.build-id section to near the start of the memory map

moves the .note.build-id section before text sections.  When --rosegment
and -z separate-code are used together, the .note.gnu.property section
is placed between the .note.build-id section and text sections in the
same PT_LOAD segment by orphan placement.  Pass --no-rosegment to ld for
PR ld/22393 tests to avoid linker test failures.

PR ld/32190
* testsuite/ld-elf/pr22393-2a.rd: Pass --no-rosegment to ld.
* testsuite/ld-elf/pr22393-2b.rd: Likewise.
* testsuite/ld-elf/shared.exp: Pass --no-rosegment to ld when
building pr22393-2 tests.
* testsuite/ld-x86-64/pr22393-3a.rd: Pass --no-rosegment to ld.
* testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Pass --no-rosegment to ld when
building pr22393-3 tests.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-elf/pr22393-2a.rd
ld/testsuite/ld-elf/pr22393-2b.rd
ld/testsuite/ld-elf/shared.exp
ld/testsuite/ld-x86-64/pr22393-3a.rd
ld/testsuite/ld-x86-64/pr22393-3b.rd
ld/testsuite/ld-x86-64/x86-64.exp