X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/7d3040d08ffa165c75ea33800ac3e2ba8b7eca48..b13267a5123f6a14e47d788c4a8a2a8692e2a119:/sys/boot/common/load_elf.c diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c index 8f00df2b88..f4da81292f 100644 --- a/sys/boot/common/load_elf.c +++ b/sys/boot/common/load_elf.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/boot/common/load_elf.c,v 1.29 2003/08/25 23:30:41 obrien Exp $ - * $DragonFly: src/sys/boot/common/load_elf.c,v 1.3 2003/11/10 06:08:31 dillon Exp $ + * $DragonFly: src/sys/boot/common/load_elf.c,v 1.5 2005/02/20 16:30:39 swildner Exp $ */ #include @@ -266,8 +266,6 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off) #else off = - (off & 0xff000000u); /* i386 relocates after locore */ #endif -#else - off = 0; /* alpha is direct mapped for kernels */ #endif } ef->off = off; @@ -619,7 +617,7 @@ __elfN(parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) __elfN(reloc_ptr)(fp, ef, v, &md, sizeof(md)); #else md.md_cval += ef->off; - md.md_data += ef->off; + md.md_data = (uint8_t *)md.md_data + ef->off; #endif #endif p += sizeof(Elf_Addr);