-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use LIEF i.s.o. manually dumping symbols #19
Comments
I was going to ask how to generate symbols_mangled_*.dat, and found this issue. I'm trying to generate one for OpenBSD. How do you do it now? Will you just call leif.parse in a loop on all the OCCT .so files and collect the output into a file? |
For OCP the script is here: https://github.com/CadQuery/OCP/blob/master/dump_symbols.py . For a general case you'd need to write your own. |
I do it in Linux like this: sed 's,7.5.1,7.5.2,g' -i dump_symbols.py
# get symbols
local _structure_needed="dummy/lib_linux/"
mkdir -p ${_structure_needed}
ln -s /usr/lib dummy/lib_linux/.
msg2 "Old symbols:"
ls -lh *.dat
rm *.dat
msg2 "Dumping symbols..."
python dump_symbols.py dummy
msg2 "Dump complete. New symbols:"
ls -lh *.dat
rm -rf ${_structure_needed}
find -maxdepth 1 -name '*.dat' -exec ln -sf ../{} pywrap/{} \; which gives output that looks like this in my builds:
|
https://github.com/lief-project/LIEF
The text was updated successfully, but these errors were encountered: