You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIE` errors like that happen when compiling main.obf.s with a simple hello world program.
The text was updated successfully, but these errors were encountered:
iraizo
changed the title
PIE objec errors
PIE object errors
Aug 16, 2021
ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC
>>> defined in /tmp/main-d92640.o
>>> referenced by main.cpp
>>> /tmp/main-d92640.o:(__cxx_global_var_init)
ld.lld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC
>>> defined in /tmp/main-d92640.o
>>> referenced by main.cpp
>>> /tmp/main-d92640.o:(__cxx_global_var_init)
ld.lld: error: relocation R_X86_64_32 cannot be used against symbol __dso_handle; recompile with -fPIC
>>> defined in /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbeginS.o
>>> referenced by main.cpp
>>> /tmp/main-d92640.o:(__cxx_global_var_init)
ld.lld: error: undefined symbol: std::ios_base::Init::Init()
>>> referenced by main.cpp
>>> /tmp/main-d92640.o:(__cxx_global_var_init)
ld.lld: error: undefined symbol: std::ios_base::Init::~Init()
>>> referenced by main.cpp
>>> /tmp/main-d92640.o:(__cxx_global_var_init)
relocation R_X86_64_32S against
.rodata' can not be used when making a PIE object; recompile with -fPIE` errors like that happen when compiling main.obf.s with a simple hello world program.The text was updated successfully, but these errors were encountered: