diff options
author | Alan Modra <amodra@gmail.com> | 2017-08-14 09:25:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-08-14 09:25:17 +0930 |
commit | 79a94a2ad1e6e2f227de07427481e4bb8be84504 (patch) | |
tree | 9cdf64ff2ae956d9ffd96d87bc1404eee27f933e /ld | |
parent | 34c4758cc210e2ca042b0373938e57fd6844f89d (diff) | |
download | fsf-binutils-gdb-79a94a2ad1e6e2f227de07427481e4bb8be84504.zip fsf-binutils-gdb-79a94a2ad1e6e2f227de07427481e4bb8be84504.tar.gz fsf-binutils-gdb-79a94a2ad1e6e2f227de07427481e4bb8be84504.tar.bz2 |
PR21441, Unnecessary padding of .eh_frame section
Until all .eh_frame sections have been edited we don't know their
sizes. So it isn't possible to properly decide whether a non-empty
.eh_frame section follows a given section until editing is complete.
bfd/
PR 21441
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't add
alignment padding here.
* elflink.c (bfd_elf_discard_info): Add .eh_frame padding here
in a reverse pass over sections.
ld/
PR 21441
* testsuite/ld-x86-64/pr21038a.d: Adjust.
* testsuite/ld-x86-64/pr21038a-now.d: Adjust.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr21038a-now.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr21038a.d | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index aad3249..1b0746a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-08-14 Alan Modra <amodra@gmail.com> + + PR 21441 + * testsuite/ld-x86-64/pr21038a.d: Adjust. + * testsuite/ld-x86-64/pr21038a-now.d: Adjust. + 2017-08-13 H.J. Lu <hongjiu.lu@intel.com> * testsuite/ld-i386/i386.exp: Run pr21884-nacl. diff --git a/ld/testsuite/ld-x86-64/pr21038a-now.d b/ld/testsuite/ld-x86-64/pr21038a-now.d index fb4ad8f..1d5bec1 100644 --- a/ld/testsuite/ld-x86-64/pr21038a-now.d +++ b/ld/testsuite/ld-x86-64/pr21038a-now.d @@ -41,11 +41,7 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -0+58 0000000000000014 0000005c FDE cie=00000000 pc=0000000000000230..0000000000000238 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop +0+58 0000000000000010 0000005c FDE cie=00000000 pc=0000000000000230..0000000000000238 DW_CFA_nop DW_CFA_nop DW_CFA_nop diff --git a/ld/testsuite/ld-x86-64/pr21038a.d b/ld/testsuite/ld-x86-64/pr21038a.d index 2ed962a..01770ec 100644 --- a/ld/testsuite/ld-x86-64/pr21038a.d +++ b/ld/testsuite/ld-x86-64/pr21038a.d @@ -40,11 +40,7 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -0+58 0000000000000014 0000005c FDE cie=00000000 pc=0000000000000230..0000000000000238 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop +0+58 0000000000000010 0000005c FDE cie=00000000 pc=0000000000000230..0000000000000238 DW_CFA_nop DW_CFA_nop DW_CFA_nop |