This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] binutils/objcopy.c (setup_section): missing extract_symbol part
- From: Hans-Peter Nilsson <hp at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 22 Oct 2015 14:13:01 -0000
- Subject: [binutils-gdb] binutils/objcopy.c (setup_section): missing extract_symbol part
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=64e59d8e11a3b7a99a786c768a2817dc2c636af0
commit 64e59d8e11a3b7a99a786c768a2817dc2c636af0
Author: Hans-Peter Nilsson <hp@bitrange.com>
Date: Thu Oct 22 16:12:35 2015 +0200
binutils/objcopy.c (setup_section): missing extract_symbol part
* objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
call when extract_symbol.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/objcopy.c | 5 -----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f8fa8b6..5cf05cc 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-22 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * objcopy.c (setup_section): Don't omit bfd_copy_private_bfd_data
+ call when extract_symbol.
+
2015-10-21 Ronald Hoogenboom <rhoogenboom@irdeto.com>
PR binutils/19104
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 6f0f62a..0ff8525 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -3089,11 +3089,6 @@ setup_section (bfd *ibfd, sec_ptr isection, void *obfdarg)
isection->output_section = osection;
isection->output_offset = 0;
- /* 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;
-
if ((isection->flags & SEC_GROUP) != 0)
{
asymbol *gsym = group_signature (isection);