From 6a451d1dd2202a6961a021285c53cfb8bb49cf86 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 3 Feb 2005 03:30:49 +0000 Subject: include/ * bfdlink.h (struct bfd_link_hash_entry): Add u.undef.weak. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak. * elflink.c (elf_smash_syms): Restore symbols that were undefweak before the as-needed lib was loaded. Abort on unexpected refs. --- include/bfdlink.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/bfdlink.h') diff --git a/include/bfdlink.h b/include/bfdlink.h index 789a38a07db..85b5c195b87 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -113,6 +113,7 @@ struct bfd_link_hash_entry undefined symbol list. */ struct bfd_link_hash_entry *next; bfd *abfd; /* BFD symbol was found in. */ + bfd *weak; /* BFD weak symbol was found in. */ } undef; /* bfd_link_hash_defined, bfd_link_hash_defweak. */ struct -- cgit v1.2.1