解决方法
根据
this answer,您可以从proc文件系统获取二进制文件的内存版本的内容.我想你可以使用原始和内存版本.
According to the man page of /proc,under Linux 2.2 and later,the file is a symbolic link containing the actual pathname of the executed command. Apparently,the binary is loaded into memory,and /proc/[pid]/exe points to the content of the binary in memory.