how can i get the source code path && file names from an ELF file(compired with -g)?
2017-12-16 20:28
666 查看
https://stackoverflow.com/questions/31333337/how-can-i-get-the-source-code-path-file-names-from-an-elf-filecompired-with
For example, create a shell script thus:
which further summarizes the output of
readelfholds the key, but you don't want to dump strings willy-nilly. Use the
-wioption to properly format the info.
For example, create a shell script thus:
readelf -wi $1 | grep -B1 DW_AT_comp_dir | \ awk '/DW_AT_name/{name = $NF; getline; print $NF"/"name}'
which further summarizes the output of
readelf -wi.
相关文章推荐
- How can I get the IPv4 address of an interface in linux from C code ?
- How can I get the logical valume by the datafile names and ASM disks?
- How can I get the logical valume by the datafile names and ASM disks?
- From an inner class, "this" points to the inner object. How do I get a "this" pointer to the enclosing object?
- How can I get the next auto increment value from mssql?
- How can I recover a file that I deleted in my local repo from the remote repo in Git?
- How to get source code from APK
- How can I get the request URL from a Java Filter?
- fatal error C1047: The object or library file "..."was created with an older compiler than other obj
- Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeout
- A guide to get you building OGRE from source with the default settings in the shortest possible time
- string - How to get the filename without the extension from a path in Python? - Stack Overflow
- How can I get an object's absolute position on the page in Javascript?
- Handler crashed with error can't find templatefile in the path 解决方法
- How to get the source code of the chromium of the specified revision
- How can i specify the resource to get from R.res.drawable dynamically?
- Given a code_combination_id how can i get the code description? 获取科目组合描述
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- How can I get a String from HID device in Python with evdev?
- How to get the file's icon using C++ - 用C++如何获取文件的图标