diff options
author | Alan Modra <amodra@gmail.com> | 2017-08-31 19:39:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-08-31 19:40:35 +0930 |
commit | 9866ffe25a0fe73f5153f2720650baf0dd9cc828 (patch) | |
tree | a376674444cbc25e4486a62c09be7f9151cff19d /ld/testsuite/ld-elf/eh3.d | |
parent | 654670a4f0928e3eddc6395d6804deb2e61a0614 (diff) | |
download | gdb-9866ffe25a0fe73f5153f2720650baf0dd9cc828.zip gdb-9866ffe25a0fe73f5153f2720650baf0dd9cc828.tar.gz gdb-9866ffe25a0fe73f5153f2720650baf0dd9cc828.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-elf/eh3.d')
-rw-r--r-- | ld/testsuite/ld-elf/eh3.d | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ld/testsuite/ld-elf/eh3.d b/ld/testsuite/ld-elf/eh3.d index 3811341..6ac584a 100644 --- a/ld/testsuite/ld-elf/eh3.d +++ b/ld/testsuite/ld-elf/eh3.d @@ -23,20 +23,12 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -0+0018 0+0024 0+001c FDE cie=0+0000 pc=0+400078\.\.0+400090 +0+0018 0+001c 0+001c FDE cie=0+0000 pc=0+400078\.\.0+400090 DW_CFA_advance_loc: 8 to 0+400080 DW_CFA_def_cfa_offset: 16 DW_CFA_offset: r6 \(rbp\) at cfa-16 DW_CFA_advance_loc: 8 to 0+400088 DW_CFA_def_cfa_register: r6 \(rbp\) - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop -0+0040 ZERO terminator +0+0038 ZERO terminator #pass |