0001-bios-Fix-alignment-change-with-gcc-5.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. From da5cbd1a3b248f2d32281a1766a3d1414c0e8e03 Mon Sep 17 00:00:00 2001
  2. From: Sylvain Gault <sylvain.gault@gmail.com>
  3. Date: Tue, 29 Sep 2015 02:38:25 +0200
  4. Subject: [PATCH] bios: Fix alignment change with gcc 5
  5. The section aligment specified in the ld scripts have to be greater or
  6. equal to those in the .o files generated by gcc.
  7. Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
  8. Tested-by: poma <pomidorabelisima@gmail.com>
  9. Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
  10. Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
  11. ---
  12. core/i386/syslinux.ld | 6 +++---
  13. core/x86_64/syslinux.ld | 6 +++---
  14. 2 files changed, 6 insertions(+), 6 deletions(-)
  15. diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
  16. index 7b4e012..7390451 100644
  17. --- a/core/i386/syslinux.ld
  18. +++ b/core/i386/syslinux.ld
  19. @@ -266,7 +266,7 @@ SECTIONS
  20. __text_end = .;
  21. }
  22. - . = ALIGN(16);
  23. + . = ALIGN(32);
  24. __rodata_vma = .;
  25. __rodata_lma = __rodata_vma + __text_lma - __text_vma;
  26. @@ -361,7 +361,7 @@ SECTIONS
  27. __dynamic_end = .;
  28. }
  29. - . = ALIGN(16);
  30. + . = ALIGN(32);
  31. __data_vma = .;
  32. __data_lma = __data_vma + __text_lma - __text_vma;
  33. @@ -377,7 +377,7 @@ SECTIONS
  34. __pm_code_dwords = (__pm_code_len + 3) >> 2;
  35. . = ALIGN(128);
  36. -
  37. +
  38. __bss_vma = .;
  39. __bss_lma = .; /* Dummy */
  40. .bss (NOLOAD) : AT (__bss_lma) {
  41. diff --git a/core/x86_64/syslinux.ld b/core/x86_64/syslinux.ld
  42. index 1057112..bf815c4 100644
  43. --- a/core/x86_64/syslinux.ld
  44. +++ b/core/x86_64/syslinux.ld
  45. @@ -266,7 +266,7 @@ SECTIONS
  46. __text_end = .;
  47. }
  48. - . = ALIGN(16);
  49. + . = ALIGN(32);
  50. __rodata_vma = .;
  51. __rodata_lma = __rodata_vma + __text_lma - __text_vma;
  52. @@ -361,7 +361,7 @@ SECTIONS
  53. __dynamic_end = .;
  54. }
  55. - . = ALIGN(16);
  56. + . = ALIGN(32);
  57. __data_vma = .;
  58. __data_lma = __data_vma + __text_lma - __text_vma;
  59. @@ -377,7 +377,7 @@ SECTIONS
  60. __pm_code_dwords = (__pm_code_len + 3) >> 2;
  61. . = ALIGN(128);
  62. -
  63. +
  64. __bss_vma = .;
  65. __bss_lma = .; /* Dummy */
  66. .bss (NOLOAD) : AT (__bss_lma) {
  67. --
  68. 2.7.4