📅  最后修改于: 2022-03-11 14:56:21.633000             🧑  作者: Mango
â g++ -c main.cpp -o my_exec.o
â ld -lc -dynamic-linker /lib64/ld-linux-x86-64.so.2 -e my_start my_exec.o -o my_exec
â One line command: g++ main.cpp -Wl,-emy_start -nostartfiles -o my_exec
â -e(--entry): Set start address