diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-07-02 08:05:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-07-02 08:05:06 +0000 |
commit | c157a92d5488226808fc94a591dfb884a9600f05 (patch) | |
tree | 8ac1d49e911f5b7316fca9c0e66f1dff66b490e3 /binutils | |
parent | e97b8566c6b16caee0d187142c65292fcdc288d1 (diff) | |
download | binutils-redhat-c157a92d5488226808fc94a591dfb884a9600f05.tar.gz |
PR 4716
* objcopy.c (filter_symbols): Correct relocatable file test.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/objcopy.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0937aee302..574f1839e3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,10 @@ 2007-07-02 Alan Modra <amodra@bigpond.net.au> + PR 4716 + * objcopy.c (filter_symbols): Correct relocatable file test. + +2007-07-02 Alan Modra <amodra@bigpond.net.au> + * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 7c5b765f3a..06e2946ce3 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++) { |