From owner-freebsd-hackers Sun Jan 18 05:50:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA04928 for hackers-outgoing; Sun, 18 Jan 1998 05:50:41 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com ([209.133.7.178]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA04809 for ; Sun, 18 Jan 1998 05:49:54 -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 OAA06576; Sat, 17 Jan 1998 14:43:43 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199801172243.OAA06576@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: John Polstra cc: hackers@FreeBSD.ORG Subject: elf and -current Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Jan 1998 14:43:43 -0800 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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 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