Date: Fri, 06 Apr 2007 01:53:54 +0300 From: "cihan" <cihan@edu.enderunix.org> To: freebsd-hackers@freebsd.org Subject: gcc plain binary format Message-ID: <20070405225355.27230.qmail@istanbul.enderunix.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070405225355.27230.qmail>