segfaults on amd64

2006-02-25 Thread Robert Millan
Hi! I made a 64 bit glibc build and it seems to have some trouble: [EMAIL PROTECTED] cat test.c main () { printf ("hello\n"); exit (56); } [EMAIL PROTECTED] amd64-kfreebsd-gnu-gcc test.c -g -o test -static ; brandelf -t FreeBSD test test.c: In function 'main': test.c:3: warning: incompatibl

Re: segfaults on amd64

2006-02-25 Thread Petr Salinger
Hi! > I made a 64 bit glibc build and it seems to have some trouble: Please could you: - add headers/prototypes for printf, exit - try it under ktrace - try "make -k check" in glibc build Petr -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [

Re: segfaults on amd64

2006-02-25 Thread Robert Millan
On Sat, Feb 25, 2006 at 09:39:19AM +0100, Petr Salinger wrote: > Hi! > > > I made a 64 bit glibc build and it seems to have some trouble: > > Please could you: > > - add headers/prototypes for printf, exit This revealed some breakage in my headers due to a mistake during manual install and pat

Re: segfaults on amd64

2006-02-25 Thread Robert Millan
Don't ask me why, but it seems that fixing the problem in binutils (see my last commit, binutils_elfosabi.diff) solved the segfaults. I got hello.c to work now. -- Robert Millan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

r1250 - trunk/web/patches

2006-02-25 Thread Robert Millan
Author: rmh Date: 2006-02-25 14:44:01 + (Sat, 25 Feb 2006) New Revision: 1250 Added: trunk/web/patches/binutils_elfosabi.diff Log: Add binutils_elfosabi.diff Added: trunk/web/patches/binutils_elfosabi.diff === --- trunk/web/pa

Re: segfaults on amd64

2006-02-25 Thread Robert Millan
On Sat, Feb 25, 2006 at 03:56:42PM +0100, Robert Millan wrote: > > Don't ask me why, but it seems that fixing the problem in binutils (see my > last > commit, binutils_elfosabi.diff) solved the segfaults. > > I got hello.c to work now. There, it came back. I think to summarise, the problem is:

Re: segfaults on amd64

2006-02-25 Thread Robert Millan
On Sat, Feb 25, 2006 at 04:45:04PM +0100, Robert Millan wrote: > Test example: > > [EMAIL PROTECTED]:/tmp$ ./test > argc = 1 > argv[0] = ./test > [EMAIL PROTECTED]:/tmp$ /tmp/test > Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...] > You have invoked `ld.so', the helper program for sh

Re: segfaults on amd64

2006-02-25 Thread Petr Salinger
> Uhm that might be explained by ld.so being allocated in 0x0. Sounds like a > repetition of #336496. Was this a problem in kernel, libc, binutils...? > > [EMAIL PROTECTED]:/tmp$ /lib/ld-kfreebsd-x86-64.so.1 --list /tmp//h > libc.so.0.1 => /gnu/lib/libc.so.0.1 (0x000800117000