[LLVMdev] lld deadstrip atoms

Shankar Easwaran shankare at codeaurora.org
Mon Nov 12 15:12:18 PST 2012


Hi Nick,


>> b) Further looking, there is a compiler attribute __attribute(used)__ which could be set for each symbol, but this is only a compiler hint. The information is not passed in the symbol table. If this is not passed in the symbol table to the linker, why is it in the DefinedAtom ?
> In mach-o it *is* passed on to the linker by the compiler.  It is the N_NO_DEAD_STRIP bit in the n_desc field of the nlist struct.  Are you saying that that information is not recorded in ELF .o files?
On ELF x86_64, I dont see the information being passed. Is clang 
planning to add this support ?

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