therealsaumil / static-arm-bins

Statically compiled ARM binaries for debugging and runtime analysis
Do What The F*ck You Want To Public License
462 stars 76 forks source link

How did you build ltrace? #2

Open TheCloudlessSky opened 6 years ago

TheCloudlessSky commented 6 years ago

Hey,

Thanks a lot for these binaries - they've been incredibly useful for me 😄. I was trying to create a static build of ltrace when I gave up and found your project. Would you be willing to share the exact steps you took to create the static binary of ltrace? I've been running into issues getting libelf to statically link properly and I'd really like to see how someone else is doing it. Here's what I have on Ubuntu using a specific ARM cross compiler:

But this is failing with errors (e.g. libelf not linking properly) and I'd like to see where I'm going wrong. So, I would appreciate it if you have the time to provide instructions on how to create a static binary of ltrace for ARM.

deividAlfa commented 3 years ago

Thanks for the instructions! It worked nicely for me, cross-compiled to arm! This were my steps:

Copied ltrace to the arm linux system and it executed ok... but always gav error: "Couldn't get data of section #0 from "/proc/xxxx/exe"

Luckly these builds worked. Saved my life!