Open gogo2464 opened 11 months ago
We typically recommend using gtirb-pprinter --binary
to reassemble (it will create the compilation command with the necessary library dependencies). Have you had problems with that approach?
gtirb-pprinter ls.gtirb --binary ls-out
Also, if you already have the libraries from ldd
, you can link them directly, right?
gcc -nostartfiles ls.s -o ls-out -l:libselinux.so.1
I prefer to use a Makefile. Do you think people could enjoy this improvement? Seems more portable.
I used to take so much time to find the good linker to my reversed application when suddenly I found the command
pkg-config --libs "libselinux"
that in accordance withldd "$(which ls)"
could find the right library linkage from the ldd command.example:
I suggest to add this trick to the doc.
Assign me to this issue please :)
Best regards.