Date: Sat, 21 Feb 2004 14:37:34 -0800 From: "'Romain Kang'" <romain@kzsu.stanford.edu> To: Don Bowman <don@sandvine.com> Cc: hackers@freebsd.org Subject: Re: memtest86 for FreeBSD boot? Message-ID: <20040221223734.GA43444@kzsu.stanford.edu> In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C85337045D81D7@mail.sandvine.com> References: <FE045D4D9F7AED4CBFF1B3B813C85337045D81D7@mail.sandvine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
My hardware didn't seem to like the simple .lds change -- the console display filled with a fascinating array of characters and colors. I wound up starting with ldscript.i386 as my template instead (see below). Seems to work... Thanks, Romain Kang Disclaimer: I speak for myself alone, romain@kzsu.stanford.edu except when indicated otherwise. --- /usr/src/sys/conf/ldscript.i386 Thu Sep 20 02:29:23 2001 +++ ldscript.i386 Sat Feb 21 14:36:08 2004 @@ -1,12 +1,20 @@ /* $FreeBSD: src/sys/conf/ldscript.i386,v 1.4.2.1 2001/09/20 09:29:23 peter Exp $ */ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) -ENTRY(btext) +ENTRY(_start) SEARCH_DIR(/usr/lib); SECTIONS { /* Read-only sections, merged into text segment: */ - . = kernbase + 0x00100000 + SIZEOF_HEADERS; + . = 0xc0100000 + SIZEOF_HEADERS; + .bootsect : { *(.bootsect) } + .setup : { *(.setup) } + .memtest : { + _start = . ; + *(.data) + _end = . ; + } + _syssize = (_end - _start + 15) >> 4; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040221223734.GA43444>