[PATCH/RFA] Ambiguity problem of REL objects on ELF sh*-*-*
Alan Modra
amodra@bigpond.net.au
Fri Nov 1 02:28:00 GMT 2002
On Mon, Oct 28, 2002 at 09:20:25AM +0900, kaz Kojima wrote:
> The idea is to select a representative target from the ambiguity set
> if possible. This is already done when the ambiguity set includes
> the default target vector. I add a list of the "associated targets"
> to the bfd_target structure and if one of them for the default target
> is a member of the ambiguity set, then use it as a representative.
> It's not so good, but is simple and is better than nothing.
Hi Kaz,
Thanks for looking at this problem. I'd like to see a solution
that is a little more maintainable though. I suggest putting
the associated targets into config.bfd and modifying the existing
mechanism for extracting DEFAULT_VECTOR to also define
ASSOCIATED_VECS, which will then be stored in a static var
declared in target.c. That way we keep target selection in one
place. Hmm, perhaps you could even use targ_selvecs, choosing
the first of targ_selvecs that matches any of the set of
ambiguous vectors.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list