[syslinux] Testing COM32 Code
ganapathy murali krishnan
gmurali at cs.uchicago.edu
Wed Jan 12 15:17:15 PST 2005
That solved my problem. Since the hello example did not work I assumed
that my system does not have elf support. fancyhello works just fine, so
I must have elf support :-)
- Murali
H. Peter Anvin wrote:
> ganapathy murali krishnan wrote:
>
>> How do I go about compiling COM32 code for linux?
>> Looking at the Makefile in "com32/samples" I presume a "make
>> hello.lo" would generate a linux version of the code.
>> However in my case "make hello.lo" generates the following error
>>
>> -----SNIP--------
>> gmurali at buda:samples$ make hello.lo
>> gcc -W -Wall -O -g -I../libutil/include -c -o hello.lo hello.c
>> hello.c:23: console.h: No such file or directory
>> make: *** [hello.lo] Error 1
>> -----END SNIP------
>>
>> the file console.h is in "../include/console.h". If I add
>> "-I../include" to LNXCFLAGS, then the compilation goes OK. My kernel
>> does not support elf binaries so I am not able to execute it. Is
>> there a way to generate a.out binaries?
>>
>
> a.out?!! In this century?! Surely you're jesting...
>
> hello.lo is like hello.o, it's an unlinked file -- you want the .lnx
> file.
>
> hello.c isn't clean for compiling under Linux, but look at
> fancyhello.c (the Linux file is fancyhello.lnx.)
>
> -hpa
>
More information about the Syslinux
mailing list