Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sylvain Gault authored and Paulo Alcantara committed Nov 8, 2015
1 parent 8dc6d75 commit e5f2b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/i386/syslinux.ld
Expand Up @@ -266,7 +266,7 @@ SECTIONS
__text_end = .;
}

. = ALIGN(16);
. = ALIGN(32);

__rodata_vma = .;
__rodata_lma = __rodata_vma + __text_lma - __text_vma;
Expand Down Expand Up @@ -361,7 +361,7 @@ SECTIONS
__dynamic_end = .;
}

. = ALIGN(16);
. = ALIGN(32);

__data_vma = .;
__data_lma = __data_vma + __text_lma - __text_vma;
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions core/x86_64/syslinux.ld
Expand Up @@ -266,7 +266,7 @@ SECTIONS
__text_end = .;
}

. = ALIGN(16);
. = ALIGN(32);

__rodata_vma = .;
__rodata_lma = __rodata_vma + __text_lma - __text_vma;
Expand Down Expand Up @@ -361,7 +361,7 @@ SECTIONS
__dynamic_end = .;
}

. = ALIGN(16);
. = ALIGN(32);

__data_vma = .;
__data_lma = __data_vma + __text_lma - __text_vma;
Expand All @@ -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) {
Expand Down

0 comments on commit e5f2b57

Please sign in to comment.