Displaying 3 results from an estimated 3 matches for "multiboot_aout_kludg".
Did you mean:
multiboot_aout_kludge
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
...his a Solaris kernel? */
if (!set.solaris && eh && kernel_is_solaris(eh))
opt.solaris = true;
@@ -263,6 +279,112 @@
return NULL;
}
sh[i].sh_addr = addr;
+ }
+ }
+ } else if (eh64 && !(opt.aout && mbh_len &&
+ (mbh->flags & MULTIBOOT_AOUT_KLUDGE))) {
+ /* Load 64-bit ELF */
+ regs.eip = eh64->e_entry; /* Can be overridden further down... */
+
+ ph64 = (Elf64_Phdr *) (cptr + eh64->e_phoff);
+
+ for (i = 0; i < eh64->e_phnum; i++) {
+ if (ph64->p_type == PT_LOAD || ph64->p_type == PT_PHDR) {
+ /*
+ * This loa...
2008 Oct 20
0
PATCH[001/001]: mboot.c: prefer ELF header over multiboot header
...mboot.c
index ad659d9..2af74c1 100644
--- a/com32/modules/mboot.c
+++ b/com32/modules/mboot.c
@@ -582,71 +582,11 @@ static size_t load_kernel(struct multiboot_info *mbi, char *cmdline)
/* This kernel will do: figure out where all the pieces will live */
- if (mbh->flags & MULTIBOOT_AOUT_KLUDGE) {
-
- /* Use the offsets in the multiboot header */
-#ifdef DEBUG
- printf("Using multiboot header.\n");
-#endif
-
- /* Where is the code in the loaded file? */
- seg_addr = ((char *)mbh) - (mbh->header_addr - mbh->load_addr);
-
-...
2015 Oct 10
2
[PATCH 2/2] com32/mboot/map.c: removed trailing spaces
.../mboot/map.c
@@ -281,7 +281,7 @@ struct multiboot_header *map_image(void *ptr, size_t len)
sh[i].sh_addr = addr;
}
}
- } else if (eh64 && !(opt.aout && mbh_len &&
+ } else if (eh64 && !(opt.aout && mbh_len &&
(mbh->flags & MULTIBOOT_AOUT_KLUDGE))) {
/* Load 64-bit ELF */
regs.eip = eh64->e_entry; /* Can be overridden further down... */
@@ -378,7 +378,7 @@ struct multiboot_header *map_image(void *ptr, size_t len)
continue; /* SHF_ALLOC sections should have PHDRs */
align = sh64[i].sh_addralign ? sh64[i].sh_addral...