aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-10-15 21:33:38 +1030
committerAlan Modra <amodra@gmail.com>2015-10-15 23:38:29 +1030
commite43fb83166ca5610e34cfba1dcf1216d0953aa8c (patch)
tree37a35c1e87197ef652900c8aec45d250d2f97896 /binutils
parent38bc821765fd286a12d6934a4d9e4369fda64b41 (diff)
downloadfsf-binutils-gdb-e43fb83166ca5610e34cfba1dcf1216d0953aa8c.zip
fsf-binutils-gdb-e43fb83166ca5610e34cfba1dcf1216d0953aa8c.tar.gz
fsf-binutils-gdb-e43fb83166ca5610e34cfba1dcf1216d0953aa8c.tar.bz2
objcopy --extract-symbol
Calling bfd_copy_private_bfd_data is necessary to copy ELF file header info. binutils/ * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data call when extract_symbol. bfd/ * elf32-v850.c (v850_elf_copy_private_bfd_data): Remove assertion that input and output .note.renesas sections are same size. Instead, only copy input to output if they are.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objcopy.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ce3ac62..9433f3d 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-15 Alan Modra <amodra@gmail.com>
+
+ * objcopy.c (copy_object): Don't omit bfd_copy_private_bfd_data
+ call when extract_symbol.
+
2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
* od-elf32_avr.c (elf32_avr_dump_avr_prop): Fix printing of align
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 2cd55fd..324456a 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -2305,11 +2305,6 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
}
}
- /* Do not copy backend data if --extract-symbol is passed; anything
- that needs to look at the section contents will fail. */
- if (extract_symbol)
- return TRUE;
-
/* Allow the BFD backend to copy any private data it understands
from the input BFD to the output BFD. This is done last to
permit the routine to look at the filtered symbol table, which is