This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Target specific Relobj?


Yes, that is simpler and better. I will make a patch.  Thanks.

-Doug

2009/8/16 Ian Lance Taylor <iant@google.com>:

> Probably the way to do it is to always call the target to create the
> object. ?Then the hook would simply be
>
> ? template<int size, bool big_endian>
> ? make_object(const elfcpp::Ehdr<size, big_endian>&);
>
> with the obvious default implementation.
>
> Admittedly targets which needed to override this would have to
> explicitly instantiate the required forms of the function. ?This would
> also mean reworking the current way that set_target works, to call
> select_target before creating the object.
>
> Ian
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]