aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSylvain Gault <sylvain.gault@gmail.com>2015-09-29 02:38:25 +0200
committerPaulo Alcantara <pcacjr@zytor.com>2015-11-08 15:46:46 -0200
commite5f2b577ded109291c9632dacb6eaa621d8a59fe (patch)
tree8495348dc4cdf8328b627accedc33aae009cf661 /core
parent8dc6d758b564a1ccc44c3ae11f265d43628219ce (diff)
downloadsyslinux-e5f2b577ded109291c9632dacb6eaa621d8a59fe.tar.gz
syslinux-e5f2b577ded109291c9632dacb6eaa621d8a59fe.tar.xz
syslinux-e5f2b577ded109291c9632dacb6eaa621d8a59fe.zip
bios: Fix alignment change with gcc 5
The section aligment specified in the ld scripts have to be greater or equal to those in the .o files generated by gcc. Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com> Tested-by: poma <pomidorabelisima@gmail.com> Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/i386/syslinux.ld6
-rw-r--r--core/x86_64/syslinux.ld6
2 files changed, 6 insertions, 6 deletions
diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
index 7b4e012c..73904510 100644
--- a/core/i386/syslinux.ld
+++ b/core/i386/syslinux.ld
@@ -266,7 +266,7 @@ SECTIONS
__text_end = .;
}
- . = ALIGN(16);
+ . = ALIGN(32);
__rodata_vma = .;
__rodata_lma = __rodata_vma + __text_lma - __text_vma;
@@ -361,7 +361,7 @@ SECTIONS
__dynamic_end = .;
}
- . = ALIGN(16);
+ . = ALIGN(32);
__data_vma = .;
__data_lma = __data_vma + __text_lma - __text_vma;
@@ -377,7 +377,7 @@ SECTIONS
__pm_code_dwords = (__pm_code_len + 3) >> 2;
. = ALIGN(128);
-
+
__bss_vma = .;
__bss_lma = .; /* Dummy */
.bss (NOLOAD) : AT (__bss_lma) {
diff --git a/core/x86_64/syslinux.ld b/core/x86_64/syslinux.ld
index 10571120..bf815c46 100644
--- a/core/x86_64/syslinux.ld
+++ b/core/x86_64/syslinux.ld
@@ -266,7 +266,7 @@ SECTIONS
__text_end = .;
}
- . = ALIGN(16);
+ . = ALIGN(32);
__rodata_vma = .;
__rodata_lma = __rodata_vma + __text_lma - __text_vma;
@@ -361,7 +361,7 @@ SECTIONS
__dynamic_end = .;
}
- . = ALIGN(16);
+ . = ALIGN(32);
__data_vma = .;
__data_lma = __data_vma + __text_lma - __text_vma;
@@ -377,7 +377,7 @@ SECTIONS
__pm_code_dwords = (__pm_code_len + 3) >> 2;
. = ALIGN(128);
-
+
__bss_vma = .;
__bss_lma = .; /* Dummy */
.bss (NOLOAD) : AT (__bss_lma) {