[PATCH] PR ld/16467: Check incompatible existing default symbol definition

Alan Modra amodra@gmail.com
Mon Jan 20 06:58:00 GMT 2014


On Sun, Jan 19, 2014 at 05:34:28PM -0800, H.J. Lu wrote:
> After resolving a versioned reference, foo@VER1, to a default versioned
> definition, foo@@VER1, from a shared object, we also merge it with
> the existing default symbol definition, foo.  When foo is IFUNC and
> foo@@VER1 aren't, we will merge 2 incompatible definitions.  This
> patch avoids merging foo@@VER1 definition with foo definition if
> one is IFUNC and the other isn't.  OK for trunk and 2.24?

Isn't this another case like PR2404?  Can't you modify the PR2404 code
you added to _bfd_elf_merge_symbol rather than changing
_bfd_elf_add_default_symbol?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list