https://sourceware.org/bugzilla/show_bug.cgi?id=21703
--- Comment #8 from Renlin Li <renlin.li at arm dot com> ---
(In reply to Alan Modra from comment #7)
> I had a quick look at your example (typo on foo_arm.c command line, you
> don't want -mthumb there!), and while I don't know the arm backend that
> well, I think the problem is due to target_internal being set from the last
> definition seen.
Yes, the target_internal is override by the last definition.
While _bfd_generic_link_add_one_symbol () doesn't update the symbol's
definition section. It's still the old one.
Because _bfd_generic_link_add_one_symbol () decided to not add the new
definition.
case MDEF:
/* Handle a multiple definition. */
(*info->callbacks->multiple_definition) (info, h,
abfd, section, value);
break;
The function simply returns when allow-multiple-definition is true.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils