Ubuntu – GCC Output Symbol not Relocatable with -fPIC
On an Ubuntu 24.04, using the default GCC-13.2 compiler I compiled a source file with -fPIC option to produce relocatable binary: /usr/bin/c++ -v -DBPFTIME_BUILD_WITH_LIBBPF=1 -DSPDLOG_COMPILED_LIB -Dbpftime_text_segment_transformer_EXPORTS -I/home/ahmad/Programs/bpftime/build/build/FridaGum-prefix/src/FridaGum -I/home/ahmad/Programs/bpftime/third_party/spdlog/include -fno-omit-frame-pointer -O3 -DNDEBUG -std=gnu++20 -fPIC -o text_segment_transformer.cpp.o -c /home/ahmad/Programs/bpftime/attach/text_segment_transformer/text_segment_transformer.cpp The compiler output…