Hi all
How can I convert c source code to plain binary file?
gcc -s -o foo.S foo.c
as -o foo.o foo.S
ld -Ttext 0x0 -e main -s --oformat binary -o foo.bin foo.o
But I give linker error like a "undefined reference to putchar"
then I tried
ld -Ttext 0x0 -e main -s --oformat binary -o foo.bin foo.o -lc
It give me this error
"/usr/lib/libc.so: could not read symbols: invalid operation"

Cihan Kömeçoğlu
Enderunix Edu ST
www.enderunix.org
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to