[syslinux] syslinux-3.36 nopie patch

Gilles Espinasse g.esp at free.fr
Sun Feb 11 05:44:45 PST 2007


----- Original Message ----- 
From: "H. Peter Anvin" <hpa at zytor.com>
To: "Gilles Espinasse" <g.esp at free.fr>
Cc: <syslinux at zytor.com>
Sent: Sunday, February 11, 2007 2:16 PM
Subject: Re: syslinux-3.36 nopie patch


> Gilles Espinasse wrote:
> > I made a patch that  depending of gcc flavor add -no-pie or -nopie on
> > libutil and dos Makefile.
> > This fix fatal error like this
> > sha1hash.c: In function `SHA1Transform':
> > ../include/netinet/in.h:24: error: can't find a register in class `BREG'
> > while reloading `asm'
> > ../include/netinet/in.h:24: error: can't find a register in class `BREG'
> > while reloading `asm'
> > ../include/netinet/in.h:24: error: can't find a register in class `BREG'
> > while reloading `asm'
> > ...
> >
>
> What platform did you see this on?  I didn't expect -pie to ever be
> turned on for i386, certainly not by default...
>
This is on hardened lfs before the switch to gcc-4 and we compile for 486.
There we need -no-pie.

On gentoo (gcc-4.1.1), -nopie is needed according to
http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/syslinux/files/syslinux-3.35-nopie.patch?rev=1.1&view=markup




More information about the Syslinux mailing list