On March 23, 2020 1:43:30 PM GMT+01:00, "Martin Liška" <mli...@suse.cz> wrote: >On 3/23/20 11:35 AM, Jakub Jelinek wrote: >> I don't think so. That is about the target, but you care about the >host. > >I see. > >> Wouldn't it be much easier not to do this and simply use macros for >bits >> from the full 32-bit value (and use shifts)? > >That would make the current small hack even bigger. Note that >plugin-api.h >provides reasonable ways how to extend the API. That said, I incline >to implement lto_plugin_symbols_v2 and use it in the corresponding >function >add_symbols_v2. > >@Richi: Can you please express your opinion?
Since lto-plugin is a host tool it is compiled by the system compiler which means we either have to properly detect host endianess or do shifting, leaving the layout unchanged. Richard. >Thanks, >Martin