diff options
author | H.J. Lu <hjl@lucon.org> | 2009-03-13 13:39:57 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-03-13 13:39:57 +0000 |
commit | bc85550b78c28c72c87713de590419c6c6f9bed5 (patch) | |
tree | 97e0dc91d5c1d8edf5fcfd42b0ada82e6eadb4fc /binutils/objcopy.c | |
parent | ccf626ae26f4677cf518ee86c2e4df8717d607dd (diff) | |
download | binutils-redhat-bc85550b78c28c72c87713de590419c6c6f9bed5.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 07d4f3f3a4..9dcf9b5150 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)) { |