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

gcc: recompile with fPIC #12

Closed
eleius opened this issue Aug 11, 2018 · 1 comment
Closed

gcc: recompile with fPIC #12

eleius opened this issue Aug 11, 2018 · 1 comment

Comments

@eleius
Copy link

eleius commented Aug 11, 2018

When I run cd rosenbridge/util && make on Arch I get the following error:

mkdir -p bin
gcc check.c -o ./bin/check
/usr/bin/ld: /tmp/ccWOkfZ4.o: relocation R_X86_64_32 against `.text' 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
make: *** [Makefile:5: bin/check] Error 1

I tried adding -fPIC to gcc in the makefile but I get the same result.

@eleius
Copy link
Author

eleius commented Aug 11, 2018

Sorry, duplicate of #1. Fixed with -no-pie. Closing.

@eleius eleius closed this as completed Aug 11, 2018
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