[LLVMdev] [lld] Verifying the Architecture of files read

Joerg Sonnenberger joerg at britannica.bec.de
Mon Oct 7 03:38:18 PDT 2013


On Fri, Oct 04, 2013 at 10:50:02PM -0500, Shankar Easwaran wrote:
> It is needed that lld verifies the input to the linker.
> 
> For example : a x86 ELF file can be given to lld when the target is
> x86_64. Similiarly with other flavors.

There are two different situations that need to be handled differently.
If the user specifies a path to an incompatbile file, it should create
an error. If the search for a library finds an incompatible file, it
should be skipped and a non-fatal warning might be emitted.

Joerg



More information about the llvm-dev mailing list