Target specific Relobj?

Doug Kwan (關振德) dougkwan@google.com
Mon Aug 17 09:02:00 GMT 2009


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
>



More information about the Binutils mailing list