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

/usr/bin/ld: final link failed: Bad value error #1

Open
kevXZY opened this issue Mar 22, 2018 · 1 comment
Open

/usr/bin/ld: final link failed: Bad value error #1

kevXZY opened this issue Mar 22, 2018 · 1 comment

Comments

@kevXZY
Copy link

kevXZY commented Mar 22, 2018

g++ -g -O2 -Wall -c -DBUILDING_LIBBINARYFILE -I../include -o BinaryFile.o BinaryFile.cpp
g++ -g -O2 -Wall -c -I../include -o SymTab.o SymTab.cpp
g++ -g -O2 -Wall -o ../lib/libBinaryFile.so -shared BinaryFile.o SymTab.o
/usr/bin/ld: BinaryFile.o: relocation R_X86_64_PC32 against symbol `_ZTV10BinaryFile' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:146: recipe for target '../lib/libBinaryFile.so' failed
make[1]: *** [../lib/libBinaryFile.so] Error 1
make[1]: Leaving directory '/home/neo/boomerang64/loader'
Makefile:146: recipe for target 'loaders' failed
make: *** [loaders] Error 2

@lxtrem
Copy link

lxtrem commented Mar 24, 2018

Same here.

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

2 participants