All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3
@ 2016-05-01 15:58 Frank Hunleth
  2016-05-01 17:14 ` Thomas Petazzoni
  2016-05-01 20:34 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Hunleth @ 2016-05-01 15:58 UTC (permalink / raw)
  To: buildroot

Syslinux uses the host version of gcc to build to bootloader. On systems
with gcc 5.3, this results in a bootloader that hangs. This issue has
been addressed in upstream syslinux, but an official release has not
been made yet. This commit adds the upstream patch to fix the issue.

Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
---
 .../0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch  | 76 ++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch

diff --git a/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch b/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch
new file mode 100644
index 0000000..2df6766
--- /dev/null
+++ b/boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch
@@ -0,0 +1,76 @@
+commit e5f2b577ded109291c9632dacb6eaa621d8a59fe
+Author: Sylvain Gault <sylvain.gault@gmail.com>
+Date:   Tue Sep 29 02:38:25 2015 +0200
+
+    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>
+    Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
+
+diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
+index 7b4e012..7390451 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 1057112..bf815c4 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) {
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3
  2016-05-01 15:58 [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3 Frank Hunleth
@ 2016-05-01 17:14 ` Thomas Petazzoni
  2016-05-01 18:38   ` Frank Hunleth
  2016-05-01 20:34 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-05-01 17:14 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun,  1 May 2016 11:58:07 -0400, Frank Hunleth wrote:
> Syslinux uses the host version of gcc to build to bootloader. On systems
> with gcc 5.3, this results in a bootloader that hangs. This issue has
> been addressed in upstream syslinux, but an official release has not
> been made yet. This commit adds the upstream patch to fix the issue.
> 
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>

Thanks! Do you think this could fix bug
https://bugs.busybox.net/show_bug.cgi?id=8866 ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3
  2016-05-01 17:14 ` Thomas Petazzoni
@ 2016-05-01 18:38   ` Frank Hunleth
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Hunleth @ 2016-05-01 18:38 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Sun, May 1, 2016 at 1:14 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
>
> Hello,
>
> On Sun,  1 May 2016 11:58:07 -0400, Frank Hunleth wrote:
> > Syslinux uses the host version of gcc to build to bootloader. On systems
> > with gcc 5.3, this results in a bootloader that hangs. This issue has
> > been addressed in upstream syslinux, but an official release has not
> > been made yet. This commit adds the upstream patch to fix the issue.
> >
> > Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
>
> Thanks! Do you think this could fix bug
> https://bugs.busybox.net/show_bug.cgi?id=8866 ?

Yes, I'm pretty sure that this patch will fix it. I added a comment to
the bug report.

Frank

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3
  2016-05-01 15:58 [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3 Frank Hunleth
  2016-05-01 17:14 ` Thomas Petazzoni
@ 2016-05-01 20:34 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-05-01 20:34 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun,  1 May 2016 11:58:07 -0400, Frank Hunleth wrote:
> Syslinux uses the host version of gcc to build to bootloader. On systems
> with gcc 5.3, this results in a bootloader that hangs. This issue has
> been addressed in upstream syslinux, but an official release has not
> been made yet. This commit adds the upstream patch to fix the issue.
> 
> Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
> ---
>  .../0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch  | 76 ++++++++++++++++++++++
>  1 file changed, 76 insertions(+)
>  create mode 100644 boot/syslinux/0001-Fix-gcc-5-ALIGN-causing-Boot-error.patch

Applied to master, thanks. I've amended the commit log to indicate that
it most likely fixes bug 8866.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-01 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-01 15:58 [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3 Frank Hunleth
2016-05-01 17:14 ` Thomas Petazzoni
2016-05-01 18:38   ` Frank Hunleth
2016-05-01 20:34 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.