I finished the syscalls, so now I moved on the initialisation code.

To test that I try to create an empty binary, which doesn't link to libc:

I've put in an hour effort, and wrote the following C file:

int main (void) {
 return 0;
}

gcc -nostdlib empty.c /usr/lib/crti.o /usr/lib/crt0.o -o empty

results in:

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x4f): undefined reference to `atexit'
/usr/lib/crt1.o(.text+0x5c): undefined reference to `atexit'
/usr/lib/crt1.o(.text+0x6f): undefined reference to `exit'

with a 
 
grep exit *.o 

in /usr/lib doesn't find me that label.

What am I missing? 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to