В Mon, 13 Jan 2014 23:00:47 +0100
Vladimir 'φ-coder/phcoder' Serbinenko пишет:
> On 13.01.2014 20:44, Andrey Borzenkov wrote:
> >
> > I'd rather move compiler features into separate file (like
> > grub/compiler.h) and include it from misc.h and separately from list.h.
> >
> This would be a good
PowerPC is the only architecture that I know of currently asking for this
biendianness, so is it sufficient to include config.h in elf.c and an
#ifdef __powerpc__ to the grub_elfXX_byteswap_header function (as shown
below)? That way, it will only perform the byteswap on the powerpc
architectu