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

Shankar Easwaran shankare at codeaurora.org
Fri Oct 4 20:50:02 PDT 2013


Hi,

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.

I was thinking to have a varargs function in the LinkingContext that 
would be overridden by each of the LinkingContexts to verify files after 
being read.

The reader would call the varargs function in the LinkingContext and 
raise an error if the input is not suitable with the current link mode.

Thanks

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-dev mailing list