[LLVMdev] [lld] ELF needs type for SharedLibraryAtom.
shankare at codeaurora.org
Tue Sep 24 10:51:11 PDT 2013
>> 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
ELF also needs content of the atom, unfortunately for Shared Library
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
More information about the llvm-dev