Debugging 使用调试符号在64位计算机上编译OpenSSH
我正试图用调试符号编译openssh,但这并没有发生,我也不知道为什么Debugging 使用调试符号在64位计算机上编译OpenSSH,debugging,gcc,compilation,symbols,Debugging,Gcc,Compilation,Symbols,我正试图用调试符号编译openssh,但这并没有发生,我也不知道为什么 wget“” tar xfz openssh-7.2p2.tar.gz cd openssh-7.2p2 自动通信 ./configure--with audit=debug 制造 sudo制作安装 objdump--syms bin/ssh bin/ssh:文件格式elf64-x86-64 符号表:无符号 有没有想过为什么调试符号不在那里?请注意,当我按如下方式执行此命令时: objdump --syms bin/ss
- wget“”
- tar xfz openssh-7.2p2.tar.gz
- cd openssh-7.2p2
- 自动通信
- ./configure--with audit=debug
- 制造
- sudo制作安装
- objdump--syms bin/ssh
objdump --syms bin/ssh.o
我可以看到,符号已经添加到了对象文件中,但在链接器完成文件时,没有添加到最终的可执行文件中
提前感谢。如果您查看
makeinstall
的功能,您将看到
/usr/bin/install -c -m 0755 -s ssh /usr/local/bin/ssh
-s
选项会导致删除调试符号,就像strip
命令一样
也许有办法让它失效
$ ./configure --help |grep strip
--disable-strip Disable calling strip(1) on install
哦,好了。你为什么要用这么旧的版本?当前版本为7.5p1,包含安全修复程序。