elf: Verify section size for mixed ordered/unordered inputs
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Jan 2021 05:38:39 +0000 (21:38 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Jan 2021 05:38:51 +0000 (21:38 -0800)
commitb1b29aa51a6a67d5e35391ad31a80765839d6eb4
tree385666f3042415bebce50f6e6285b34b9bb40975
parentaae7fcb8d755a2eb3f32a3f945a4e8f30cf5c5e2
elf: Verify section size for mixed ordered/unordered inputs

When fixing up SHF_LINK_ORDER, issue a fatal error if the output section
size is increased.  Otherwise, bfd_set_section_contents will fail later
when attempting to write contents past the end of the output section.

PR ld/26256
PR ld/27160
* elflink.c (elf_fixup_link_order): Verify that fixing up
SHF_LINK_ORDER doesn't increase the output section size.
bfd/ChangeLog
bfd/elflink.c
This page took 0.023787 seconds and 4 git commands to generate.