From bc85550b78c28c72c87713de590419c6c6f9bed5 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 13 Mar 2009 13:39:57 +0000 Subject: bfd/ 2009-03-13 H.J. Lu 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 PR binutils/9945 * objcopy.c (copy_object): Clear HAS_RELOC when stripping all. --- binutils/objcopy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'binutils/objcopy.c') 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)) { -- cgit v1.2.1