mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 02:45:37 +08:00
* ldctor.c (ldctor_build_sets): Handle bfd_link_hah_defweak.
* ldexp.c (fold_name): Likewise. * ldlang.c (print_one_symbol): Likewise. (lang_finish): Likewise. * ldmain.c (multiple_common): Likewise. * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak renamed to bfd_link_hash_undefweak.
This commit is contained in:
@ -1280,7 +1280,8 @@ PTR ptr;
|
||||
{
|
||||
asection * sec = (asection *)ptr;
|
||||
|
||||
if (hash_entry->type == bfd_link_hash_defined)
|
||||
if (hash_entry->type == bfd_link_hash_defined
|
||||
|| hash_entry->type == bfd_link_hash_defweak)
|
||||
{
|
||||
if (sec == hash_entry->u.def.section) {
|
||||
print_section ("");
|
||||
@ -2149,7 +2150,8 @@ lang_finish ()
|
||||
|
||||
h = bfd_link_hash_lookup (link_info.hash, entry_symbol, false, false, true);
|
||||
if (h != (struct bfd_link_hash_entry *) NULL
|
||||
&& h->type == bfd_link_hash_defined)
|
||||
&& (h->type == bfd_link_hash_defined
|
||||
|| h->type == bfd_link_hash_defweak))
|
||||
{
|
||||
bfd_vma val;
|
||||
|
||||
|
Reference in New Issue
Block a user