[clang] rtld-elf/rtld.c and stack traces in gdb(1)

2011-08-21 Thread Test Rat
I often get corrupted traces with clang world, the cause seems to be in rtld. $ cd /usr/src/libexec/rtld-elf; env -i __MAKE_CONF=/dev/null TERM=$TERM sh $ make CC=gcc all install $ gdb yes [...] y y ^C Program received signal SIGINT, Interrupt. 0x0008009455ac in write () fro

Re: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported

2011-08-21 Thread Alexander Best
On Sun Aug 21 11, Dimitry Andric wrote: > On 2011-08-19 10:01, Alexander Best wrote: > >On Thu Aug 18 11, Dimitry Andric wrote: > ... > >>Please use the following fragment instead, which is recommended on > >>: > >thanks. that fixed the issue. seein

Re: [clang] rtld-elf/rtld.c and stack traces in gdb(1)

2011-08-21 Thread Test Rat
Roman Divacky writes: >> And compiling rtld with clang + -O0 makes it crash. > > what is "it" ? clang itself or rtld? rtld, but not on trunk (r138219) > Also I think it makes sense to check if this issue persists with TOT > clang, can you check that? It persists. Compiling only rtld.c with -O0