Changes between Initial Version and Version 1 of Ticket #15743, comment 5


Ignore:
Timestamp:
Jan 15, 2021, 2:47:01 AM (4 years ago)
Author:
X512

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15743, comment 5

    initial v1  
    11`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.
    22
    3 Also `image_t` have no meaningful image base. It use regions that can be loaded at arbitrary addresses, possibly in different order than order 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.
     3Also `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.