mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Getting access to section data during dynlink.c
@ 2023-10-16  1:06 Farid Zakaria
  2023-10-16 14:26 ` Rich Felker
  0 siblings, 1 reply; 10+ messages in thread
From: Farid Zakaria @ 2023-10-16  1:06 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

Hi!

I'd like to read some section data during dynlink.c
Does anyone have any good suggestions on the best way to do so?
I believe most ELF files ask for the load to start from the start of the
ELF file.

I see in dynlink.c the kernel sends AT_PHDR as an auxiliary vector --
Should I try applying a fixed offset from it to get to the start of the
ehdr ?

Any advice is appreciated.

Please include me in the CC for the reply.
I can't recall if I've subscribed.

[-- Attachment #2: Type: text/html, Size: 600 bytes --]

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

end of thread, other threads:[~2023-10-17 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-16  1:06 [musl] Getting access to section data during dynlink.c Farid Zakaria
2023-10-16 14:26 ` Rich Felker
2023-10-16 21:09   ` Farid Zakaria
2023-10-16 21:16     ` Farid Zakaria
2023-10-16 21:53   ` Szabolcs Nagy
2023-10-16 22:04     ` Rich Felker
2023-10-17  3:39       ` Farid Zakaria
2023-10-17  8:28       ` Szabolcs Nagy
2023-10-17 12:24         ` Rich Felker
2023-10-17 17:37         ` Farid Zakaria

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).