Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85566

Summary: grub 0.96 + netboot needs some pic loving
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: pageexec, rockoo, swegener
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2005-03-16 15:58:22 UTC
see Bug 80693 for history here
Comment 1 PaX Team 2005-05-08 14:22:47 UTC
a while ago i fixed netboot/main.c for PIE/PIC:

--- grub-0.94.orig/netboot/main.c       2004-05-11 10:38:24.000000000 +0200
+++ grub-0.94/netboot/main.c    2003-07-09 13:45:37.000000000 +0200
@@ -701,7 +701,7 @@
      "adcw %%ax,%0\n\t"                /* add carry of previous iteration */
      "loop 1b\n\t"
      "adcw $0,%0"              /* add carry of last iteration */
-     : "=b" (*sum), "=S"(start), "=c"(len)
+     : "=r" (*sum), "=S"(start), "=c"(len)
      : "0"(*sum), "1"(start), "2"(len)
      : "ax", "cc"
      );

on another note, there's this nxstack patch that looks quite messy but it seems to remove nested functions for good, in that case the ebuild need no longer call    chpax/paxctl (not that if it was needed before, E/EMUTRAMP detection worked fine).
Comment 2 SpanKY gentoo-dev 2005-05-08 22:11:07 UTC
thanks pax guys ... ive merged these changes into 0.96-r2

swegener: could you take this patch upstream please ?
Comment 3 SpanKY gentoo-dev 2005-07-21 19:22:09 UTC
e-mailed upstream