Displaying 2 results from an estimated 2 matches for "image_read".
Did you mean:
image_load
2025 Apr 21
0
[PATCH] Permit zero-sized ELF program sections
...("Skipping segment of size 0x%08x at vaddr 0x%08x at 0x%08x, "
+ "all data is before current offset.\n",
+ cr_pht->p_filesz,
+ cr_pht->p_vaddr,
+ (Elf32_Addr)module_get_absolute(cr_pht->p_vaddr, module));
+ continue;
+ }
+
if (image_read((char *)module_get_absolute(cr_pht->p_vaddr, module) + aux_off,
cr_pht->p_filesz - aux_off, module) < 0) {
res = -1;
--- syslinux-6.04~git20190206.bf6db5b4+dfsg1.orig/com32/lib/sys/module/x86_64/elf_module.c
+++ syslinux-6.04~git20190206.bf6db5b4+dfsg1/com32/lib/sys/modu...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...ULL;
+ 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_vaddr, module) + aux_off,
- cr_pht->p_filesz - aux_off, module) < 0) {
+ if (image_read((char *)module_get_absolute(cr_pht->p_vaddr, module) + aux_off,
+ cr_pht->p_filesz - aux_off, module) < 0) {
res = -1;
goto out;...