[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

serverboot's elf loader is broken

From: Neal H. Walfield
Subject: serverboot's elf loader is broken
Date: 05 Jul 2002 16:25:35 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

The elf standard says that we must load the executable in to the LMA,
not the VMA.  I have attached a patch that fixes the problem.

2002-07-05  Neal H. Walfield  <neal@cs.uml.edu>

        * elf-load.c (exec_load): Conform to the elf standard and load the
        data into the supplied LMA, not the VMA.

Index: elf-load.c
RCS file: /cvsroot/hurd/hurd/serverboot/elf-load.c,v
retrieving revision 1.5
diff -u -p -r1.5 elf-load.c
--- elf-load.c  3 Jul 2002 19:35:03 -0000       1.5
+++ elf-load.c  5 Jul 2002 14:12:13 -0000
@@ -134,7 +134,7 @@ int exec_load(exec_read_func_t *read, ex
                    if (ph->p_flags & PF_X) type |=
                    result = (*read_exec)(handle,
                                          ph->p_offset, ph->p_filesz,
-                                         ph->p_vaddr, ph->p_memsz, type);
+                                         ph->p_paddr, ph->p_memsz, type);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]