[英]Compiling OpenSSH on 64-bit machine with debugging symbols
我正在嘗試使用調試符號來編譯opensh,但是這沒有發生,我也不知道為什么。
bin / ssh:文件格式elf64-x86-64
符號表:無符號
有什么想法為什么調試符號不存在? 請注意,當我執行以下命令時:
objdump --syms bin/ssh.o
我可以看到符號已添加到目標文件中,但是當鏈接器完成文件的添加時,沒有將其添加到最終的可執行文件中。
提前致謝。
如果您查看make install
功能,您將看到
/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
哦,到了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.