ld -r abort in _bfd_elf_write_section_eh_frame
authorAlan Modra <amodra@gmail.com>
Tue, 11 Nov 2014 09:43:03 +0000 (20:13 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 11 Nov 2014 09:58:46 +0000 (20:28 +1030)
commit4de1599bcf044a5396ec588f90b8f475be657d4f
treeba6d6f32109140c8baf7e4077b39748cb6d3717a
parent26a84859720cc202e98265d9e4a2e0ddde207f86
ld -r abort in _bfd_elf_write_section_eh_frame

Turning on .eh_frame processing for ld -r resulted in systemtap
tickling a ld bug.  Triggered by the zero terminator not being added
to .eh_frame in a separate file as it usually is (crtend.o), but
instead being present in the last .eh_frame section along with CIEs
and FDEs.  The 4-byte terminator makes the section size check fail
on 64-bit targets.

* elf-eh-frame (_bfd_elf_write_section_eh_frame): Adjust section
size check to account for possible zero terminator.
bfd/ChangeLog
bfd/elf-eh-frame.c
This page took 0.026106 seconds and 4 git commands to generate.