mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 20:40:13 -04:00
19 lines
771 B
Plaintext
19 lines
771 B
Plaintext
$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);
|