Changes between Initial Version and Version 1 of Ticket #15743, comment 5
- Timestamp:
- Jan 15, 2021, 2:47:01 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15743, comment 5
initial v1 1 1 `runtime_loader` currently don't save ELF header and program header table in [https://git.haiku-os.org/haiku/tree/headers/private/runtime_loader/runtime_loader.h#n89 image_t]. `image_t` should be changed or `dl_iterate_phdr` implementation should read ELF file on each call. 2 2 3 Also `image_t` have no meaningful image base. It use regions that can be loaded at arbitrary addresses, possibly in different order than orderdescribed in program header table. So formula `addr == info->dlpi_addr + info->dlpi_phdr[x].p_vaddr;` described in [https://linux.die.net/man/3/dl_iterate_phdr documentation] may not work.3 Also `image_t` have no meaningful image base. It use regions that can be loaded at arbitrary addresses, possibly in different order than described in program header table. So formula `addr == info->dlpi_addr + info->dlpi_phdr[x].p_vaddr;` described in [https://linux.die.net/man/3/dl_iterate_phdr documentation] may not work.