search for: getelftyp

Displaying 1 result from an estimated 1 matches for "getelftyp".

Did you mean: getelftype
2019 Jan 23
3
Why -pie option force LLD to output shared obj file type, not executable?
...tput obj file as shared obj type if link with -pie. Is there any way to let LLD output executable type obj with -pie option? I'm OK if I have to link twice, first output DYN and then covert to EXEC in some way. Could you give some link command examples on it? lld\ELF\Writer.cpp static uint16_t getELFType() { if (Config->Pic) return ET_DYN; if (Config->Relocatable) return ET_REL; return ET_EXEC; } Thanks Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190123/3d35f540/attachment.h...