From owner-freebsd-hackers Mon Jan 19 00:38:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA07921 for hackers-outgoing; Mon, 19 Jan 1998 00:38:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.178]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA07899; Mon, 19 Jan 1998 00:38:21 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id AAA22588; Mon, 19 Jan 1998 00:38:06 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199801190838.AAA22588@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: sos@FreeBSD.ORG cc: jdp@polstra.com, hackers@FreeBSD.ORG Subject: Re: elf and -current In-reply-to: Your message of "Mon, 19 Jan 1998 09:29:31 +0100." <199801190829.JAA24199@sos.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Mon, 19 Jan 1998 00:38:06 -0800 From: Amancio Hasty Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id AAA07900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Hi, I managed to build the tool chain and gcc-2.8 appears to work. For instance , I compiled a speech recognition C++ library which was bombing out with the stock gcc. Now my most pressing problem is compiling gdb to support elf . Tnks, Amancio > In reply to Amancio Hasty who wrote: > > > > Hi, > > > > I am trying to build the elf tool chain in 3.0 -current on my test box. > > 3.0 -current is the October 6 Snapshot. > > > > Also has anyone managed to build the elf tool-chain with gcc-2.8? > > with gcc-2.8 the dynamic loader bombs out > > Why on earth would you want to use gcc-2.8 ?? > Getting tha system ELF'ified is errorprone enough, you dont need extra > "help" from a new (potentially) buggy compiler.... > > > I sprinkle some prints in rtld.c : > > > > ~hasty/elfkit/tests/hello > > a > > ee > > digest dynamic tag 16 > > digest dynamic tag 15 > > digest dynamic tag 4 > > digest dynamic tag 5 > > digest dynamic tag 6 > > digest dynamic tag 10 > > digest dynamic tag 11 > > digest dynamic tag 17 > > digest dynamic tag 18 > > digest dynamic tag 19 > > digest dynamic tag 22 > > text rel > > c > > e > > oops: 825 > > Segmentation fault (core dumped) > > > > digest_dynamic(&obj_rtld); > > xprintf("c \n"); > > assert(obj_rtld.needed == NULL); > > xprintf("e \n"); > > assert(!obj_rtld.textrel); <<< this is where it dies > > xprintf("elast \n"); > > > > > > ---- > > > > Attempt to build native elf cc.... > > > > > > # setenv BINFORMAT elf > > # make > > ===> cc_tools > > echo '#include "i386/freebsd-elf.h"' > tm.h > > echo '#include "i386/xm-freebsd.h"' > config.h > > echo '#include "i386/xm-freebsd.h"' > hconfig.h > > echo '#include "i386/xm-freebsd.h"' > tconfig.h > > echo '#include "cp/lang-options.h"' > options.h > > echo '#include "cp/lang-specs.h"' > specs.h > > echo '#include "f2c-specs.h"' >> specs.h > > Warning: Object directory not changed from original > > /usr/src/gnu/usr.bin/cc/cc_tools > > ===> cc_int > > Warning: Object directory not changed from original > > /usr/src/gnu/usr.bin/cc/cc_int > > ===> cpp > > Warning: Object directory not changed from original /usr/src/gnu/usr.bin/cc/cpp > > ===> cc1 > > Warning: Object directory not changed from original /usr/src/gnu/usr.bin/cc/cc1 > > ===> cc > > Warning: Object directory not changed from original /usr/src/gnu/usr.bin/cc/cc > > ===> cc1obj > > Warning: Object directory not changed from original > > /usr/src/gnu/usr.bin/cc/cc1obj > > ===> cc1plus > > Warning: Object directory not changed from original > > /usr/src/gnu/usr.bin/cc/cc1plus > > ===> c++ > > Warning: Object directory not changed from original /usr/src/gnu/usr.bin/cc/c++ > > ===> f77 > > Warning: Object directory not changed from original /usr/src/gnu/usr.bin/cc/f77 > > ===> libgcc > > Warning: Object directory not changed from original > > /usr/src/gnu/usr.bin/cc/libg > > cc > > /usr/src/gnu/usr.bin/cc/libgcc/../cc/cc -B/usr/src/gnu/usr.bin/cc/libgcc/../cc1 > > / -B/usr/src/gnu/usr.bin/cc/libgcc/../cpp/ -c -O -pipe -DFREEBSD_ELF > > -I/usr/src/gnu/usr.bin/cc/libgcc/../../../../contrib/gcc > > -I/usr/src/gnu/usr.bin/cc/libgcc/../../../../contrib/gcc/config > > -DFREEBSD_NATIVE -DDEFAULT_TARGET_VERSION=\"2.7.2.1\" > > -DDEFAULT_TARGET_MACHINE=\"i386-unknown-freebsdelf\" > > -I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools -DL_divdi3 -o _divdi3.o > > /usr/src/gnu/usr.bin/cc/libgcc/../../../../contrib/gcc/libgcc2.c > > *unknown*: Assembler messages: > > *unknown*:0: Warning: /usr/bin/as: I don't understand 'Q' flag. > > *unknown*:0: Warning: /usr/bin/as: I don't understand 'y' flag. > > {standard input}:4: Error: Unknown pseudo-op: `.section' > > *** Error code 1 > > > > Stop. > > *** Error code 1 > > > > > > Tnks, > > Amancio > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team > Even more code to hack -- will it ever end > ..