aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
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/objcopy.c
parentce98a316e9018523f263417f3948fed63a1ba1db (diff)
downloadfsf-binutils-gdb-3516e9841caa37f3c19ca09c66ecde8208b7a1d0.zip
fsf-binutils-gdb-3516e9841caa37f3c19ca09c66ecde8208b7a1d0.tar.gz
fsf-binutils-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/objcopy.c')
-rw-r--r--binutils/objcopy.c3
1 files changed, 3 insertions, 0 deletions
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))
{