Linux使用gcc编译.s文件时出现报错/usr/local/bin/ld: /tmp/ccmWodjz.o: relocation R_X86_64_32 against `.data' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status
需要在编译时加上-no-pie,即
$ gcc -o 文件名 文件名.s -no-pie
有没有人可以告诉我为啥呀