Date: Sat, 17 Jan 1998 14:43:43 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: John Polstra <jdp@polstra.com> Cc: hackers@FreeBSD.ORG Subject: elf and -current Message-ID: <199801172243.OAA06576@rah.star-gate.com>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801172243.OAA06576>
