PR 4716
* objcopy.c (filter_symbols): Correct relocatable file test.
This commit is contained in:
parent
ae351704e2
commit
e205a09915
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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".
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue