]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: Move note sections after .rodata section
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 7 Nov 2024 04:39:19 +0000 (12:39 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Nov 2024 11:47:44 +0000 (19:47 +0800)
commit023e60ced0c850aa32ac4a948877d25592d44401
treea720cbf8beb8b78268919c896718a11e7c1f383f
parentc0a07e7d48801c7cffaf825545fc05024a7c686e
ld: Move note sections after .rodata section

Move note sections after .rodata section so that note sections are
placed in the same PT_LOAD segment together with .rodata section,
instead of a separate PT_LOAD segment.

PR ld/32341
* scripttempl/misc-sections.sc: Move note sections to ...
* scripttempl/elf.sc: Here, after .rodata section.
* testsuite/ld-elf/pr32341.d: New file.
* testsuite/ld-elf/pr32341.s: Likewise.

Co-Authored-By: Nick Clifton <nickc@redhat.com>
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/scripttempl/elf.sc
ld/scripttempl/misc-sections.sc
ld/testsuite/ld-elf/pr32341.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr32341.s [new file with mode: 0644]