[Aboriginal] PIE

David Halls dahalls at gmail.com
Mon May 18 13:35:56 PDT 2015


~ # cat wup.c
int main(int argc, char **argv) { return 0; }
~ # gcc -fPIE -pie wup.c
ld: /usr/cc/lib/crtbegin.o: relocation R_X86_64_32 against
`_Jv_RegisterClasses' can not be used when making a shared object;
recompile with -fPIC
/usr/cc/lib/crtbegin.o: could not read symbols: Bad value

I tried -nostartfiles and speciying Scrtbegin.o but to no avail.
Am I barking up the wrong tree?

Many thanks
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20150518/20eb1542/attachment.htm>


More information about the Aboriginal mailing list