mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* elflink.h (elf_link_add_object_symbols): Don't warn about type
or size changes because of a weak symbol. PR 11827.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
|
Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* elflink.h (elf_link_add_object_symbols): Don't warn about type
|
||||||
|
or size changes because of a weak symbol.
|
||||||
|
|
||||||
* cisco-core.c (SIGEMT): Define if not defined.
|
* cisco-core.c (SIGEMT): Define if not defined.
|
||||||
|
|
||||||
Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
|
Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
@ -861,9 +861,11 @@ elf_link_add_object_symbols (abfd, info)
|
|||||||
h = (struct elf_link_hash_entry *) h->root.u.i.link;
|
h = (struct elf_link_hash_entry *) h->root.u.i.link;
|
||||||
|
|
||||||
/* It's OK to change the type if it used to be a weak
|
/* It's OK to change the type if it used to be a weak
|
||||||
definition. */
|
definition, or if the current definition is weak (and
|
||||||
|
hence might be ignored). */
|
||||||
if (h->root.type == bfd_link_hash_defweak
|
if (h->root.type == bfd_link_hash_defweak
|
||||||
|| h->root.type == bfd_link_hash_undefweak)
|
|| h->root.type == bfd_link_hash_undefweak
|
||||||
|
|| bind == STB_WEAK)
|
||||||
type_change_ok = true;
|
type_change_ok = true;
|
||||||
|
|
||||||
/* It's OK to change the size if it used to be a weak
|
/* It's OK to change the size if it used to be a weak
|
||||||
|
Reference in New Issue
Block a user