Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Kernel:tools
qemu
0001-use-PT_LOAD-constant.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-use-PT_LOAD-constant.patch of Package qemu
From a7869a6f99e4ef0e7084c5aea6b3f1d548e2d15d Mon Sep 17 00:00:00 2001 From: Daniel Axtens <dja@axtens.net> Date: Wed, 8 Apr 2020 10:19:56 +1000 Subject: [PATCH 01/12] use PT_LOAD constant Signed-off-by: Daniel Axtens <dja@axtens.net> --- lib/libelf/elf32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roms/SLOF/lib/libelf/elf32.c b/roms/SLOF/lib/libelf/elf32.c index 64ea386..be9a94f 100644 --- a/roms/SLOF/lib/libelf/elf32.c +++ b/roms/SLOF/lib/libelf/elf32.c @@ -113,7 +113,7 @@ elf_load_segments32(void *file_addr, signed long offset, /* loop e_phnum times */ for (i = 0; i <= ehdr->e_phnum; i++) { /* PT_LOAD ? */ - if (phdr->p_type == 1) { + if (phdr->p_type == PT_LOAD) { if (phdr->p_paddr != phdr->p_vaddr) { printf("ELF32: VirtAddr(%lx) != PhysAddr(%lx) not supported, aborting\n", (long)phdr->p_vaddr, (long)phdr->p_paddr); @@ -149,7 +149,7 @@ elf_get_base_addr32(void *file_addr) /* loop e_phnum times */ for (i = 0; i <= ehdr->e_phnum; i++) { /* PT_LOAD ? */ - if (phdr->p_type == 1) { + if (phdr->p_type == PT_LOAD) { return phdr->p_paddr; } /* step to next header */ -- 2.33.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor