skip to Main Content

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…

VIEW QUESTION

Visual Studio Code – Why does it seem as though the compiler is repurposing Argc and Argv in my function?

main.cpp code: #include <iostream> int main() { std::cout << "Hello World!n"; } Dissasembly in Ghidra: ************************************************************* * FUNCTION ************************************************************* int __cdecl main (int _Argc , char * * _Argv , char * * _E assume GS_OFFSET = 0xff00000000 int EAX:4…

VIEW QUESTION
Back To Top
Search