diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-11 14:56:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-11 14:56:49 +0000 |
commit | b088e4b229f23e28bceb74e0adb11b5d8d4818cf (patch) | |
tree | 20bd2283efa4f7c2253e213e24c6d5a5ae044452 /bfd/sunos.c | |
parent | 3a4f97862f047c2b299e3f04ca652142c7032ded (diff) | |
download | gdb-b088e4b229f23e28bceb74e0adb11b5d8d4818cf.zip gdb-b088e4b229f23e28bceb74e0adb11b5d8d4818cf.tar.gz gdb-b088e4b229f23e28bceb74e0adb11b5d8d4818cf.tar.bz2 |
* sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
a symbol with a non-zero plt_offset.
Diffstat (limited to 'bfd/sunos.c')
-rw-r--r-- | bfd/sunos.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/sunos.c b/bfd/sunos.c index c1a28554..2e2f1fd 100644 --- a/bfd/sunos.c +++ b/bfd/sunos.c @@ -1426,10 +1426,12 @@ sunos_scan_std_relocs (info, abfd, sec, relocs, rel_size) } BFD_ASSERT ((h->flags & SUNOS_REF_REGULAR) != 0); - BFD_ASSERT ((h->root.root.type == bfd_link_hash_defined - || h->root.root.type == bfd_link_hash_defweak) - ? (h->root.root.u.def.section->owner->flags & DYNAMIC) != 0 - : (h->root.root.u.undef.abfd->flags & DYNAMIC) != 0); + BFD_ASSERT (h->plt_offset != 0 + || ((h->root.root.type == bfd_link_hash_defined + || h->root.root.type == bfd_link_hash_defweak) + ? (h->root.root.u.def.section->owner->flags + & DYNAMIC) != 0 + : (h->root.root.u.undef.abfd->flags & DYNAMIC) != 0)); /* This reloc is against a symbol defined only by a dynamic object. */ |