public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How can I wrap ld-linux or execve into it?
@ 2022-01-31  3:53 Farid Zakaria
  2022-01-31  8:12 ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: Farid Zakaria @ 2022-01-31  3:53 UTC (permalink / raw)
  To: gcc-help

 Hi,

Not exactly sure if this is the best mailing list for this question,
please recommend me elsewhere if more appropriate.

I am looking to perform some functionality before the dynamic linker
(linux-ld/ld.so) is invoked.

My naive assessment was that I would be able to set in the PT_INTERP
section of a binary, my *static binary*, which will then execve into
the dynamic linker after doing some precanned actions.

I came across https://github.com/Mic92/nix-ld which seems to do
something similar, but I was curious why it has to do a lot more to
achieve the same effect with a jump.

Cheers
FZ

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-31 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31  3:53 How can I wrap ld-linux or execve into it? Farid Zakaria
2022-01-31  8:12 ` Jonathan Wakely
2022-01-31 19:49   ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).