Techiio-author
Started by Debarghya DasSep 25, 2021

Open
How to manually figure out which linker to use with a given libc file and given binary?

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

Background is I am looking at an old CTF challenge from pico-CTF. You do have the Makefile, the binary itself and the correspondig libc file available. However the binary will not run on my machine but abort with a segmentation fault. According to a writeup I have available this is due to the mismatched linker (ld-linux-xxxxx.x.so) on the local machine. In the writeup he then uses a different ld-file and everything is fine. So I would like to know how can you figure out which ld-file you need to use. I know you can then use patchelf with the --set-interpreter option to run that binary normally but how to know which linker to use blows my mind. Would be great if anyone can give me some insight into that or at least point me to some link where I can readup on that. so far I havent found anything useful yet.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance