summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd/elflink.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-06-09 22:29:42 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-06-09 22:29:42 +0000
commitb087ddea52407e4a9b8fe07d0ad234d36379fb67 (patch)
treeeb75e416899d445ace73b11fb08d1328b3a1f368 /gnu/usr.bin/binutils/bfd/elflink.c
parentfcab77976ead6644881c2eb7bb3499cdfabed685 (diff)
Automatic cvs merge. Dread what I will have to fix after this excuse
of a program is done...
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/elflink.c')
-rw-r--r--gnu/usr.bin/binutils/bfd/elflink.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elflink.c b/gnu/usr.bin/binutils/bfd/elflink.c
index 6534d84b18a..8039b4fe35b 100644
--- a/gnu/usr.bin/binutils/bfd/elflink.c
+++ b/gnu/usr.bin/binutils/bfd/elflink.c
@@ -226,20 +226,13 @@ _bfd_elf_link_record_dynamic_symbol (info, h)
{
case STV_INTERNAL:
case STV_HIDDEN:
- /* This symbol must be defined in the shared object or
- executable. */
- if (h->root.type == bfd_link_hash_undefined)
+ if (h->root.type != bfd_link_hash_undefined
+ && h->root.type != bfd_link_hash_undefweak)
{
- bfd * abfd = h->root.u.undef.abfd;
- const char * name = h->root.root.string;
-
- (*info->callbacks->undefined_symbol)
- (info, name, abfd, bfd_und_section_ptr, 0, true);
+ h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL;
+ return true;
}
-
- h->elf_link_hash_flags |= ELF_LINK_FORCED_LOCAL;
- break;
-
+
default:
break;
}