diff options
Diffstat (limited to 'sys/boot/common')
-rw-r--r-- | sys/boot/common/load_elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c index ff1f506..bc514b1 100644 --- a/sys/boot/common/load_elf.c +++ b/sys/boot/common/load_elf.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: load_elf.c,v 1.9 1998/10/17 03:06:38 peter Exp $ + * $Id: load_elf.c,v 1.10 1999/01/04 18:37:41 peter Exp $ */ #include <sys/param.h> @@ -229,7 +229,7 @@ elf_loadimage(struct loaded_module *mp, int fd, vm_offset_t off, firstaddr = lastaddr = 0; if (kernel) { #ifdef __i386__ - off = 0x10000000; /* -0xf0000000 - i386 relocates after locore */ + off = - (off & 0xff000000u); /* i386 relocates after locore */ #else off = 0; /* alpha is direct mapped for kernels */ #endif |