[LLVMdev] [lld] ELF needs type for SharedLibraryAtom.

Shankar Easwaran shankare at codeaurora.org
Tue Sep 24 10:51:11 PDT 2013


Hi Nick,
>> The SharedLibraryAtoms have a field canBeNullAtRuntime, could this be used for weak definitions ?
> I think you are confusing the two overloaded uses of "weak". canBeNullAtRuntime is for "weak imports" (can be missing at runtime).  "Weak definitions" are used with C++ (can be multiple at runtime).  For instance operator new in libc++.dylib is a weak definition.  A program which defines its own (non-weak) operator new, will override the one in libc++.dylib.
Thanks for making it clear. Agree completely. ELF also would need the 
same info.

ELF also needs content of the atom, unfortunately for Shared Library 
data atoms.

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