Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position Independent Code #1

Open
yds12 opened this issue May 17, 2020 · 0 comments
Open

Position Independent Code #1

yds12 opened this issue May 17, 2020 · 0 comments

Comments

@yds12
Copy link
Owner

yds12 commented May 17, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant