diff options
author | nyan <nyan@FreeBSD.org> | 2011-02-19 10:32:12 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2011-02-19 10:32:12 +0000 |
commit | 9e117269c9acaf5b5825433b452f7ac321310be9 (patch) | |
tree | cc57db96cf4ef1a22ca33cb4cf854922578de5f7 /sys/boot/pc98 | |
parent | 68e44090e5abfac7ef798e8e8fe6232ec54c07ed (diff) | |
download | FreeBSD-src-9e117269c9acaf5b5825433b452f7ac321310be9.zip FreeBSD-src-9e117269c9acaf5b5825433b452f7ac321310be9.tar.gz |
MFi386: revision 218745
Remove reading of symbols from a.out loaded files.
Diffstat (limited to 'sys/boot/pc98')
-rw-r--r-- | sys/boot/pc98/boot2/boot2.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/boot/pc98/boot2/boot2.c b/sys/boot/pc98/boot2/boot2.c index 59bbec7..d345cfc 100644 --- a/sys/boot/pc98/boot2/boot2.c +++ b/sys/boot/pc98/boot2/boot2.c @@ -484,23 +484,6 @@ load(void) p += roundup2(hdr.ex.a_text, PAGE_SIZE); if (xfsread(ino, p, hdr.ex.a_data)) return; - p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); - bootinfo.bi_symtab = VTOP(p); - *(uint32_t*)p = hdr.ex.a_syms; - p += sizeof(hdr.ex.a_syms); - if (hdr.ex.a_syms) { - if (xfsread(ino, p, hdr.ex.a_syms)) - return; - p += hdr.ex.a_syms; - if (xfsread(ino, p, sizeof(int))) - return; - x = *(uint32_t *)p; - p += sizeof(int); - x -= sizeof(int); - if (xfsread(ino, p, x)) - return; - p += x; - } } else { fs_off = hdr.eh.e_phoff; for (j = i = 0; i < hdr.eh.e_phnum && j < 2; i++) { @@ -532,8 +515,8 @@ load(void) } } addr = hdr.eh.e_entry & 0xffffff; + bootinfo.bi_esymtab = VTOP(p); } - bootinfo.bi_esymtab = VTOP(p); bootinfo.bi_kernelname = VTOP(kname); bootinfo.bi_bios_dev = dsk.daua; __exec((caddr_t)addr, RB_BOOTINFO | (opts & RBX_MASK), |