[lld][Darwin] StubHelper atom

Shankar Easwaran shankare at codeaurora.org
Thu Oct 24 14:21:17 PDT 2013


Hi Nick,

So I found the problem on Darwin when it tries to add a StubHelperAtom :-

   X86_64StubHelperAtom(const File &file, const Atom &helperCommon)
   : SimpleDefinedAtom(file) {
     this->addReference(KindHandler_x86_64::lazyImmediate, 1, nullptr, 0);
     this->addReference(KindHandler_x86_64::ripRel32, 6, &helperCommon, 0);
   }

A reference is being added to point to a nullptr. This has to be fixed 
to point to the right atom.

What should the target for the lazyImmediateReference be ?

Thanks

Shankar Easwaran

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




More information about the llvm-commits mailing list