Skip to contentSkip to conversation

use ELF types for values from ELF

PATCH New Jimi Xenidis 1 participant 1 message Jun 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use ELF types for values from ELF

This patch makes sure that the types that the code uses are the same as the ELF definitions, this is necessary if the file is to be build with a different size than the ELF it is interpreting.

--

xen/common/elf.c +1 -1
diff -r 239f82b1208e xen/common/elf.c
@@ -23,7 +23,7 @@ int parseelfimage(struct domain_setup_in
     Elf_Ehdr *ehdr = (Elf_Ehdr *)dsi->image_addr;
     Elf_Phdr *phdr;
     Elf_Shdr *shdr;
-    unsigned long kernstart = ~0UL, kernend=0UL, vaddr, virt_base, elf_pa_off;
+    Elf_Addr kernstart = -1, kernend = 0, vaddr, virt_base, elf_pa_off;
     char *shstrtab, *guestinfo=NULL, *p;
     char *elfbase = (char *)dsi->image_addr;
     int h, virt_base_defined, elf_pa_off_defined;