diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-04-13 02:52:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-04-13 02:52:34 +0000 |
commit | c398915025cc1d08213bb8fb38e53908b8057904 (patch) | |
tree | 75e6f85b592f02197f2818a73922b5f280613a23 /binutils/ChangeLog | |
parent | e319fa28f9559b7164a0a52e34ebcda1a07341c9 (diff) | |
download | binutils-c398915025cc1d08213bb8fb38e53908b8057904.zip binutils-c398915025cc1d08213bb8fb38e53908b8057904.tar.gz binutils-c398915025cc1d08213bb8fb38e53908b8057904.tar.bz2 |
Don't generate empty reloc sections
binutils/
PR binutils/13947
* objcopy.c (copy_object): Call copy_relocations_in_section
before copy_section.
(skip_section): New.
(copy_relocations_in_section): Likewise.
(copy_section): Use skip_section. Don't copy relocations here.
binutils/testsuite/
PR binutils/13947
* binutils-all/i386/compressed-1b.d: Remove empty REL section.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Remove empty RELA
section.
* binutils-all/x86-64/compressed-1c.d: Likewise.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5c0492c..7b6c219 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,12 @@ +2012-04-12 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/13947 + * objcopy.c (copy_object): Call copy_relocations_in_section + before copy_section. + (skip_section): New. + (copy_relocations_in_section): Likewise. + (copy_section): Use skip_section. Don't copy relocations here. + 2012-04-11 Ryan Mansfield <rmansfield@qnx.com> * objdump.c (dump_bfd): If defaulting to dwarf call |