]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf-eh-frame.c
Remove .eh_frame zero terminators
authorAlan Modra <amodra@gmail.com>
Thu, 31 Aug 2017 10:09:14 +0000 (19:39 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 31 Aug 2017 10:10:35 +0000 (19:40 +0930)
commit9866ffe25a0fe73f5153f2720650baf0dd9cc828
treea376674444cbc25e4486a62c09be7f9151cff19d
parent654670a4f0928e3eddc6395d6804deb2e61a0614
Remove .eh_frame zero terminators

The machinery to do this was there, but not enabled if the terminator
was the only thing in the section.

bfd/
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Don't exit early
for a section containing just a terminator.  Allow multiple
terminators at end of section.
* elflink.c (bfd_elf_discard_info): Iterate over .eh_frame
sections when not adding alignment.  Assert on terminator in
the middle of FDEs.
ld/
* testsuite/ld-elf/eh3.d: Update.
* testsuite/ld-elf/eh4.d: Update.
bfd/ChangeLog
bfd/elf-eh-frame.c
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/eh3.d
ld/testsuite/ld-elf/eh4.d