Date: Mon, 19 Jan 1998 12:27:00 -0800 (PST) From: Alex <garbanzo@hooked.net> To: Timothy Moore <moore@WOLFENET.com> Cc: hackers@FreeBSD.ORG Subject: Re: elf and -current Message-ID: <Pine.BSF.3.96.980119122116.322A-100000@zippy.dyn.ml.org> In-Reply-To: <199801191934.LAA06191@gonzo.wolfenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Jan 1998, Timothy Moore wrote: > I don't know about Amancio, but I "ELF'ified" to get egcs support, and > purposely avoided gcc 2.7.x due to C++ problems. The elfkit itself was > very slick, however, two or three things should probably be addressed. > > Ditto. > > 1.) So far only FSF gcc will work as a cross compiler (not elf to elf, but > a.out to elf), egcs bombs out here. > > I managed to build egcs as a cross compiler, following the > instructions in the elfkit's README. I used binutils-2.8. I had to > hide the limits.h in egcs' privite include directory in order to > compile libc; BSD defines some Posix constants in there that aren't in > the GNU version. Configuring egcs (I tried with egcs snapshots from December 97, with and without pgcc patches) as per the README worked fine. Running make as per the README, caused it to bomb out on making libgcc1.a. I finally downloaded gcc 2.8, and it worked fine. > 2.) The shared libc depends on the crt* code, and the crt* code depends on > the static libc. > 3.) The crt* code seems to be missing a few symbols that libc uses. > However it's probably missing a few more. Anyone care to fill me > in as to which ones are missing? > > What are the symptoms of this? My egcs seemed to do alright on the > gcc test suite, modulo problems caused by a buggy elf-lorder (I had > assumed that the lorder bugs described in the README had been fixed in > binutils-2.8; they haven't) and FreeBSD floating point exception > behavior. The g++ test suite had a bunch of unexpected failures, but I > can imagine these have the same cause. I'll check into those tonight > after I rebuild libc with the fixed lorder. Perhaps I did something horribly wrong (I'm guessing yes), but I found a bunch of missing symbols (so far strlen and a few others haven't made it into my elf libc for whatever reason). I also noticed in a Hello world program, that there were undefined references to errno, sys_errlist and sys_nerr, adding those into the crt code fixed it for me. If I can get these kinks worked out, I think I'll build a native elf compiler, so I can get egcs and X working (so far I only have the most basic libs converted to elf). P.S. I'm using binutils 2.8.1 from labrea.stanford.edu El hombre mas brillante dijo una vez "Cuidado hay NT". (it's a nerd thing) - alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980119122116.322A-100000>