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

ex29: recompile with -fPIC #1

Open
rajrkane opened this issue Jul 22, 2021 · 0 comments
Open

ex29: recompile with -fPIC #1

rajrkane opened this issue Jul 22, 2021 · 0 comments

Comments

@rajrkane
Copy link
Owner

Issue in exercise 29. Cannot make the .so file despite including -fPIC.

$ cc -fPIC -shared -o libex29.so libex29.o
/usr/bin/ld: libex29.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

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