On Wed, Sep 24, 2014 at 2:40 PM, Ian Lance Taylor <i...@airs.com> wrote:
> Richard Biener <richard.guent...@gmail.com> writes:
>
>> Btw, the patch is very hard to read as it moves (and modifies?) files
>> at the same time.  What's this magic "file attributes" we need?
>
> The file attributes issue is the ELF machine number, class, OSABI,
> flags, and endianness.  When generating an ELF file it has to have this
> information, and it has to match the objects generated by the assembler.
> If it doesn't, the linker won't accept it and pass it to the plugin as
> we require.  We could of course build a large table of those numbers and
> keep it updated for each target.  But it's simpler to extract the
> numbers from an existing object file that we know must be valid.

I see.  Thanks for the explanation.

Richard.

> Ian

Reply via email to