[PATCH] elf: Remove elf_machine_load_address

Florian Weimer fw@deneb.enyo.de
Sun May 26 14:30:37 GMT 2024


* H. J. Lu:

> rtld.c already uses __ehdr_start to get the ELF header and its load
> address:
>
> extern const ElfW(Ehdr) __ehdr_start attribute_hidden;
> ...
>   const ElfW(Ehdr) *rtld_ehdr = &__ehdr_start;
>
> Remove elf_machine_load_address and use &__ehdr_start instead.
>
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>

Does this really work on all HIDDEN_VAR_NEEDS_DYNAMIC_RELOC targets?


More information about the Libc-alpha mailing list