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' ... Gilles -------------- next part -------------- A non-text attachment was scrubbed... Name: syslinux-3.36-nopie.patch Type: application/octet-stream Size: 1287 bytes Desc: not available URL: <http://www.zytor.com/pipermail/syslinux/attachments/20070211/12986753/attachment.obj>
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... -hpa
Apparently Analagous Threads
- [PATCH] Fix compilation when gcc is patched to default to -fPIE -Wl, -pie
- [PATCH] Fix gpxe compilation when gcc is patched to compile by default with -fPIE -Wl, -pie
- can''t find a register in class `BREG'' while reloading `asm''
- syslinux-3.36-pre8 feedback
- syslinux-3.36 and 3.35 compilation broke /dev/null