aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-03-13 13:39:57 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-03-13 13:39:57 +0000
commit3516e9841caa37f3c19ca09c66ecde8208b7a1d0 (patch)
tree3c3409a1d09fa237a64779a6c28709839e79a21c /binutils
parentce98a316e9018523f263417f3948fed63a1ba1db (diff)
downloadgdb-3516e9841caa37f3c19ca09c66ecde8208b7a1d0.zip
gdb-3516e9841caa37f3c19ca09c66ecde8208b7a1d0.tar.gz
gdb-3516e9841caa37f3c19ca09c66ecde8208b7a1d0.tar.bz2
bfd/
2009-03-13 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9945 * elf.c (assign_section_numbers): Generate symbol table if there is any relocation in output. (_bfd_elf_compute_section_file_positions): Likewise. binutils/ 2009-03-13 H.J. Lu <hongjiu.lu@intel.com> PR binutils/9945 * objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objcopy.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b5a7f6c..87badcd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/9945
+ * objcopy.c (copy_object): Clear HAS_RELOC when stripping all.
+
2009-03-11 Chris Demetriou <cgd@google.com>
* ar.c (deterministic): New global variable.
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 07d4f3f..9dcf9b5 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1396,6 +1396,9 @@ copy_object (bfd *ibfd, bfd *obfd)
flags &= ~bfd_flags_to_clear;
flags &= bfd_applicable_file_flags (obfd);
+ if (strip_symbols == STRIP_ALL)
+ flags &= ~HAS_RELOC;
+
if (!bfd_set_start_address (obfd, start)
|| !bfd_set_file_flags (obfd, flags))
{