92f5c0435e
Apply a patch (patch-b*) to xen-3.1.0 to fix the ELF loader so that the symbol table is properly loaded for the NetBSD dom0 kernel. This is from the Xen repository, based on a patch inistally submitted by Christoph Egger to Xen (thanks !). Should fix PR port-xen/36671. While there also provide a debug Xen kernel, built with debug=1. Bump PKGREVISION.
18 lines
771 B
Text
18 lines
771 B
Text
$NetBSD: patch-bb,v 1.1 2007/08/17 17:26:04 bouyer Exp $
|
|
|
|
--- xen/common/libelf/libelf-dominfo.c.orig 2007-05-18 16:45:21.000000000 +0200
|
|
+++ xen/common/libelf/libelf-dominfo.c 2007-08-16 21:43:18.000000000 +0200
|
|
@@ -378,6 +378,13 @@
|
|
if ( parms->virt_entry == UNSET_ADDR )
|
|
parms->virt_entry = elf_uval(elf, elf->ehdr, e_entry);
|
|
|
|
+ if ( parms->bsd_symtab )
|
|
+ {
|
|
+ elf_parse_bsdsyms(elf, parms->virt_kend);
|
|
+ if ( elf->bsd_symtab_pend )
|
|
+ parms->virt_kend = elf->bsd_symtab_pend + parms->virt_offset;
|
|
+ }
|
|
+
|
|
elf_msg(elf, "%s: addresses:\n", __FUNCTION__);
|
|
elf_msg(elf, " virt_base = 0x%" PRIx64 "\n", parms->virt_base);
|
|
elf_msg(elf, " elf_paddr_offset = 0x%" PRIx64 "\n", parms->elf_paddr_offset);
|