[PATCH] ld: Use --no-rosegment to ld for PR ld/22393 tests
H.J. Lu
hjl.tools@gmail.com
Fri Sep 20 20:08:12 GMT 2024
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.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Use-no-rosegment-to-ld-for-PR-ld-22393-tests.patch
Type: text/x-patch
Size: 6903 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240921/b7879f55/attachment.bin>
More information about the Binutils
mailing list