This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Skipping assembler when producing slim LTO files


Richard Biener <richard.guenther@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.

Ian


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