> to try things out i create a static binary and coerce it to use my > C library instead of the system's one. > > this is how i compile my program: > > cc -g -DYP -DFreeBSD -Wall -pedantic -ansi -c -I../../libc/include nss-test.c > cc -g -nostdlib -static -L../../libc -o nss-test nss-test.o \ > ../../csu/i386-elf/crt1.o ../../csu/i386-elf/crti.o -lc I'm no expert, but I tried something like this a few weeks back(to totally link without libc), and I was wondering, aren't you missing crtbegin and crtend ? Marco van de Voort ([EMAIL PROTECTED]) <http://www.stack.nl/~marcov/xtdlib.htm> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: inner workings of the C compiler Oscar Bonilla
- Re: inner workings of the C compiler Alfred Perlstein
- Re: inner workings of the C compiler Oscar Bonilla
- Re: inner workings of the C compi... Chuck Robey
- Re: inner workings of the C c... Oscar Bonilla
- Re: inner workings of the C c... Chuck Robey
- Re: inner workings of the C c... Oscar Bonilla
- Re: inner workings of the C compi... Alfred Perlstein
- Re: inner workings of the C c... Oscar Bonilla
- Re: inner workings of the C c... Alfred Perlstein
- Re: inner workings of the C compiler Marco van de Voort
- Re: inner workings of the C compiler Oscar Bonilla
- Re: inner workings of the C compiler Marco van de Voort
- Re: inner workings of the C compiler Oscar Bonilla