[oss] Tool to add symbols back to a stripped binary

Vladimir Oltean olteanv at gmail.com
Tue Oct 25 20:13:06 EEST 2016


Hi,

Yesterday I wrote this Bash helper script as a wrapper around "objcopy
--add-symbol". [1]
It reads the symbol information from a file, where they are stored one per
line, in a format such as below:
    $ cat symbols.txt
    0x80480f1 .text write
    0x8048081 .text func1
    0x80480b9 .text func2
    0x8048091 .text func3
    0x80480c9 .text start
    0x80480fe .text exit
For a complete usage guide, run ./apply-symbols without parameters.
I am distributing this tool hoping that it will be useful. If you discover
bugs or make patches to enhance its functionality, please let me know.

Thanks,
Vladimir

[1]:
https://github.com/vladimiroltean/blog/blob/master/dotfiles/bin/apply-symbols
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/oss/attachments/20161025/860b75a2/attachment.html>


More information about the oss mailing list