x64-roadmap icon indicating copy to clipboard operation
x64-roadmap copied to clipboard

Position Independent Code

Open yds12 opened this issue 4 years ago • 0 comments

It is still unclear when/why sometimes gcc complains about linking to our programs containing a .data section. Sometimes it works. Last time I got the error:

/usr/bin/ld: bin/ret_words.o: relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

yds12 avatar May 17 '20 17:05 yds12