diff options
| author | Tor Egge <tegge@FreeBSD.org> | 1999-02-15 17:36:58 +0000 |
|---|---|---|
| committer | Tor Egge <tegge@FreeBSD.org> | 1999-02-15 17:36:58 +0000 |
| commit | 3d8befc22d05fcb85c99d8b4b0005a34e8ea0c88 (patch) | |
| tree | bc610812ad303b2ff4b3b2147923b33fa591cedd /sys/boot/common/load_elf.c | |
| parent | 91e8cb2f1ee358868033f608cb9694bcbb5b8a7f (diff) | |
Notes
Diffstat (limited to 'sys/boot/common/load_elf.c')
| -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 ff1f50638ac8..bc514b1bc3ac 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 |
