Date: Mon, 19 Jan 1998 00:38:06 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: sos@FreeBSD.ORG Cc: jdp@polstra.com, hackers@FreeBSD.ORG Subject: Re: elf and -current Message-ID: <199801190838.AAA22588@rah.star-gate.com> In-Reply-To: Your message of "Mon, 19 Jan 1998 09:29:31 %2B0100." <199801190829.JAA24199@sos.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > ..
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801190838.AAA22588>