diff options
author | Alan Modra <amodra@gmail.com> | 2007-07-02 08:05:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-07-02 08:05:06 +0000 |
commit | e205a09915bcf2c75f2b925377eb7ce2da90c43a (patch) | |
tree | 6672a8ab309a05289cedb00a0c2e86642a18096c /binutils/objcopy.c | |
parent | ae351704e23ab7a731fd68d75420f95e4b10b642 (diff) | |
download | gdb-e205a09915bcf2c75f2b925377eb7ce2da90c43a.zip gdb-e205a09915bcf2c75f2b925377eb7ce2da90c43a.tar.gz gdb-e205a09915bcf2c75f2b925377eb7ce2da90c43a.tar.bz2 |
PR 4716
* objcopy.c (filter_symbols): Correct relocatable file test.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 7c5b765..06e2946 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++) { |