search for: cr_pht

Displaying 2 results from an estimated 2 matches for "cr_pht".

Did you mean: cap_ht
2025 Apr 21
0
[PATCH] Permit zero-sized ELF program sections
...er failed to load the ldlinux.e32 file. The issue occurs in com32/lib/sys/module/i386/elf_module.c in the load_segments() function, particularly when iterating through the module's program headers and loading the PT_LOAD ones. The code hits a program section which has a zero on-disk size, the cr_pht->p_filesz field is 0, and looking at the cr_pht->p_vaddr and comparing that with an objdump of the ldlinux.e32 file, that was the .BSS section, and it's reasonable for it to not be stored in the file, the memory should be initialized to zero, and the System V ABI document, chapter 5 [0] s...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...sys/exec.h> #include "elfutils.h" #include "common.h" @@ -50,7 +51,7 @@ static int check_header(Elf32_Ehdr *elf_hdr) { static int load_segments(struct elf_module *module, Elf32_Ehdr *elf_hdr) { int i; int res = 0; - void *pht = NULL; + char *pht = NULL; Elf32_Phdr *cr_pht; Elf32_Addr min_addr = 0x00000000; // Min. ELF vaddr @@ -136,8 +137,8 @@ static int load_segments(struct elf_module *module, Elf32_Ehdr *elf_hdr) { // headers Elf32_Off aux_off = module->u.l._cr_offset - cr_pht->p_offset; - if (image_read(module_get_absolute(cr_pht->p_v...