]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/grub-0.97/grub-0.96-netboot-pic.patch
HinzugefĆ¼gt:
[ipfire-2.x.git] / src / patches / grub-0.97 / grub-0.96-netboot-pic.patch
1 Patch by the PaX Team to fix PIC/PIE problems.
2
3 http://bugs.gentoo.org/show_bug.cgi?id=85566
4
5 --- netboot/main.c
6 +++ netboot/main.c
7 @@ -701,7 +701,7 @@
8 "adcw %%ax,%0\n\t" /* add carry of previous iteration */
9 "loop 1b\n\t"
10 "adcw $0,%0" /* add carry of last iteration */
11 - : "=b" (*sum), "=S"(start), "=c"(len)
12 + : "=r" (*sum), "=S"(start), "=c"(len)
13 : "0"(*sum), "1"(start), "2"(len)
14 : "ax", "cc"
15 );