From: Alan Modra Date: Mon, 2 Jul 2007 08:05:06 +0000 (+0000) Subject: PR 4716 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e205a09915bcf2c75f2b925377eb7ce2da90c43a;p=binutils-gdb.git PR 4716 * objcopy.c (filter_symbols): Correct relocatable file test. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0937aee3022..574f1839e37 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2007-07-02 Alan Modra + + PR 4716 + * objcopy.c (filter_symbols): Correct relocatable file test. + 2007-07-02 Alan Modra * Makefile.am: Run "make dep-am". diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 7c5b765f3a6..06e2946ce34 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -910,8 +910,7 @@ filter_symbols (bfd *abfd, bfd *obfd, asymbol **osyms, { asymbol **from = isyms, **to = osyms; long src_count = 0, dst_count = 0; - int relocatable = (abfd->flags & (HAS_RELOC | EXEC_P | DYNAMIC)) - == HAS_RELOC; + int relocatable = (abfd->flags & (EXEC_P | DYNAMIC)) == 0; for (; src_count < symcount; src_count++) {