From owner-freebsd-hackers Mon Jan 19 00:30:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA07339 for hackers-outgoing; Mon, 19 Jan 1998 00:30:26 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [195.8.129.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA07301 for ; Mon, 19 Jan 1998 00:30:11 -0800 (PST) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.8.8/8.8.8) id JAA24199; Mon, 19 Jan 1998 09:29:31 +0100 (MET) (envelope-from sos) Message-Id: <199801190829.JAA24199@sos.freebsd.dk> Subject: Re: elf and -current In-Reply-To: <199801172243.OAA06576@rah.star-gate.com> from Amancio Hasty at "Jan 17, 98 02:43:43 pm" To: hasty@rah.star-gate.com (Amancio Hasty) Date: Mon, 19 Jan 1998 09:29:31 +0100 (MET) Cc: jdp@polstra.com, hackers@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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 ..