[syslinux] Compilation on PPC/bigendian machine
H. Peter Anvin
hpa at zytor.com
Fri Jun 2 15:20:21 PDT 2006
Christian Schilmöller wrote:
> Hi list!
>
> Sometimes I need to make boot floppies for an i386 based Linux router.
> Just for interest, I tried to use syslinux together with my iMac G4
> (PPC) with Yellow Dog Linux to create the floppy.
> I know that this is generally difficult because it requires
> cross-compiler and cross-assembler. Nevertheless, I tried it because I
> only needed the disk installer, the loader binaries for i386 were
> already there.
> I've found out that the installer was intended to be portable, but in
> fact wasn't due to some typos and missing typecasts in the file
> libfat/ulint.h.
> I was able to correct them and tested the installer successfully.
>
> For the case that someone comes across the same problem (or maybe for
> the next version), I'll attach the diff-file of my changes here.
>
Uhm... this doesn't make sense, le16_t is defined as an array of uint8_t's, so the casts
should have meant nothing.
I wonder if the typedefs at the top of ulint.h need __attribute__((packed)).
-hpa
More information about the Syslinux
mailing list