[PATCH] ld -r: Don't merge with member of output section group

H.J. Lu hjl.tools@gmail.com
Wed Jul 17 20:20:00 GMT 2019

When doing a relocatable link, members of input section group are
placed in their own output sections.  We need to make sure that no
input sections are merged with member of output section group.

OK for master and release branches?

PR ld/24819
* emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
member of output section group when doing a relocatable link.
* testsuite/ld-elf/pr24819.d: New file.
* testsuite/ld-elf/pr24819.s: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-r-Don-t-merge-with-member-of-output-section-group.patch
Type: text/x-patch
Size: 2561 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20190717/80fdadcb/attachment.bin>

More information about the Binutils mailing list