libhugetlbfs-2.6-noexec-stack.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. diff -Nuar libhugetlbfs-2.6.orig/sys-elf32ppclinux.S libhugetlbfs-2.6/sys-elf32ppclinux.S
  2. --- libhugetlbfs-2.6.orig/sys-elf32ppclinux.S 2009-08-24 12:56:07.000000000 +0000
  3. +++ libhugetlbfs-2.6/sys-elf32ppclinux.S 2009-10-31 06:43:49.040319417 +0000
  4. @@ -32,3 +32,7 @@
  5. mr 8,9
  6. sc
  7. blr
  8. +
  9. +#if defined(__linux__) && defined(__ELF__)
  10. + .section .note.GNU-stack,"",%progbits
  11. +#endif
  12. diff -Nuar libhugetlbfs-2.6.orig/sys-elf64ppc.S libhugetlbfs-2.6/sys-elf64ppc.S
  13. --- libhugetlbfs-2.6.orig/sys-elf64ppc.S 2009-08-24 12:56:07.000000000 +0000
  14. +++ libhugetlbfs-2.6/sys-elf64ppc.S 2009-10-31 06:43:54.303652251 +0000
  15. @@ -41,3 +41,7 @@
  16. mr 8,9
  17. sc
  18. blr
  19. +
  20. +#if defined(__linux__) && defined(__ELF__)
  21. + .section .note.GNU-stack,"",%progbits
  22. +#endif
  23. diff -Nuar libhugetlbfs-2.6.orig/sys-elf_i386.S libhugetlbfs-2.6/sys-elf_i386.S
  24. --- libhugetlbfs-2.6.orig/sys-elf_i386.S 2009-08-24 12:56:07.000000000 +0000
  25. +++ libhugetlbfs-2.6/sys-elf_i386.S 2009-10-31 06:43:57.536975670 +0000
  26. @@ -40,3 +40,7 @@
  27. pop %edi
  28. pop %ebp
  29. ret
  30. +
  31. +#if defined(__linux__) && defined(__ELF__)
  32. + .section .note.GNU-stack,"",%progbits
  33. +#endif
  34. diff -Nuar libhugetlbfs-2.6.orig/sys-elf_x86_64.S libhugetlbfs-2.6/sys-elf_x86_64.S
  35. --- libhugetlbfs-2.6.orig/sys-elf_x86_64.S 2009-08-24 12:56:07.000000000 +0000
  36. +++ libhugetlbfs-2.6/sys-elf_x86_64.S 2009-10-31 06:44:26.943648847 +0000
  37. @@ -32,3 +32,7 @@
  38. mov 0x8(%rsp),%r9
  39. syscall
  40. retq
  41. +
  42. +#if defined(__linux__) && defined(__ELF__)
  43. + .section .note.GNU-stack,"",%progbits
  44. +#endif