GCC

GCC 是 compiler driver

GCC關閉保護

Stack Canaries

-fno-stack-protector 

DEP

-z execstack

PIE

-no-pie

All

-fno-stack-protector -z execstack -no-pie

ASAN

gcc test.c -fsanitize=address

參考

連結配置

參見What’s the difference between -rpath and -L?


C C++