summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-09 05:10:51 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-09 05:10:51 +0000
commit7119c714fb8c52b44a89cea1375aa8caaed89f68 (patch)
tree115c506a8e9c4e41213f21a0d5b9dc7c2c5c689b /sys-boot/grub/files
parentAdd missing vital detail to ChangeLog (stable -r14 on x86). (diff)
downloadgentoo-2-7119c714fb8c52b44a89cea1375aa8caaed89f68.tar.gz
gentoo-2-7119c714fb8c52b44a89cea1375aa8caaed89f68.tar.bz2
gentoo-2-7119c714fb8c52b44a89cea1375aa8caaed89f68.zip
Add patch by the PaX Team to fix PIC/PIE issues in the netboot code and remove the chpax/paxctl stuff since the nxstack patch fixes hardened issues.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'sys-boot/grub/files')
-rw-r--r--sys-boot/grub/files/grub-0.96-netboot-pic.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-boot/grub/files/grub-0.96-netboot-pic.patch b/sys-boot/grub/files/grub-0.96-netboot-pic.patch
new file mode 100644
index 000000000000..5cac692bb201
--- /dev/null
+++ b/sys-boot/grub/files/grub-0.96-netboot-pic.patch
@@ -0,0 +1,15 @@
+Patch by the PaX Team to fix PIC/PIE problems.
+
+http://bugs.gentoo.org/show_bug.cgi?id=85566
+
+--- netboot/main.c
++++ netboot/main.c
+@@ -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"
+ );