* 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
* Re: How can I wrap ld-linux or execve into it?
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
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2022-01-31 8:12 UTC (permalink / raw)
To: Farid Zakaria; +Cc: gcc-help
On Mon, 31 Jan 2022, 03:54 Farid Zakaria via Gcc-help, <gcc-help@gcc.gnu.org>
wrote:
> 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.
>
I would try the glibc list then.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How can I wrap ld-linux or execve into it?
2022-01-31 8:12 ` Jonathan Wakely
@ 2022-01-31 19:49 ` Florian Weimer
0 siblings, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2022-01-31 19:49 UTC (permalink / raw)
To: Jonathan Wakely via Gcc-help; +Cc: Farid Zakaria, Jonathan Wakely
* Jonathan Wakely via Gcc-help:
> On Mon, 31 Jan 2022, 03:54 Farid Zakaria via Gcc-help, <gcc-help@gcc.gnu.org>
> wrote:
>
>> 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.
>>
>
> I would try the glibc list then.
Specifically libc-help:
<https://sourceware.org/mailman/listinfo/libc-help>
Farid, the LD_AUDIT interface may be what you are looking for. It
allows one to write dynamic loader plugins which run very early.
Thanks,
Florian
^ 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).