/* ?* Error: attempt to use an ARM instruction on a Thumb-only processor -- ?*/ ?? ?EDIT: apparently, changing in the assembly file from .arch armv7 to .arch armv7a fixes the problem.
?? ?.arch armv7?? ??? ?# Thumb instruction ?? ?.arch armv7a?? ? # Arm instruction
/* ?* dynamic library of create for undefined symbol `g1' ?*/ ?? ?gcc -c g.c -g -Wall ?? ?gcc -shared g.o -o libg.so
?? ?/usr/bin/ld: g.o: relocation R_X86_64_PC32 against undefined symbol `g1' 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
?? ?modified:
?? ?gcc -fPIC -c g.c -g -Wall ?? ?gcc -shared g.o -o libg.so
|