嘗試在編譯的二進制文件上運行objdump -T | grep GLIBC
。
例如:
$ objdump -T /bin/lessecho|grep GLIBC
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 putchar
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 puts
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.4 __stack_chk_fail
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 strchr
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 __libc_start_main
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 strcmp
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __printf_chk
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 exit
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 fwrite
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __fprintf_chk
0000000000000000 w DF *UND* 0000000000000000 GLIBC_2.2.5 __cxa_finalize
0000000000202040 g DO .bss 0000000000000008 GLIBC_2.2.5 stderr
nm -D
也將顯示類似的數據。
我會從看'strace'開始。 –
您可能在鏈接過程中獲取此信息。檢查'ld'選項? – neuhaus
謝謝。我加了一張紙條,爲什麼strace在這種情況下不起作用。 – nightshade99