带有\n的printf被优化成puts
带有\n的printf被优化成puts
test.c
1 | |
编译成可重定位文件.o gcc -c test.c
查看elf section table
readelf -S test.o找到.strtab序号,查看字符串表
查看.strtab内容
readelf -p 11 test.o
去掉\n
带有\n的printf被优化成puts
https://blog.989883.xyz/2020/09/14/csdn/带有!n的printf被优化成puts/
