Annotation of /trunk/grub/patches/grub-0.97-netboot-pic.patch
Parent Directory | Revision Log
Revision 1092 -
(hide annotations)
(download)
Thu Aug 19 13:29:28 2010 UTC (14 years, 1 month ago) by niro
File size: 430 byte(s)
Thu Aug 19 13:29:28 2010 UTC (14 years, 1 month ago) by niro
File size: 430 byte(s)
-new patches
1 | niro | 1092 | Patch by the PaX Team to fix PIC/PIE problems. |
2 | |||
3 | http://bugs.gentoo.org/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 | ); |