From patchwork Sun May 1 15:58:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Hunleth X-Patchwork-Id: 617178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3qyXDp6xFRz9sdn for ; Mon, 2 May 2016 01:59:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=troodon-software-com.20150623.gappssmtp.com header.i=@troodon-software-com.20150623.gappssmtp.com header.b=DmtP8rLY; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3D92B8B0BE; Sun, 1 May 2016 15:59:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fMtNrhaDAIBP; Sun, 1 May 2016 15:59:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 45D398B006; Sun, 1 May 2016 15:59:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9F3661C0E44 for ; Sun, 1 May 2016 15:59:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9AB5B87283 for ; Sun, 1 May 2016 15:59:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15dc9qEG4j8O for ; Sun, 1 May 2016 15:59:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7C8C286F77 for ; Sun, 1 May 2016 15:59:16 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id r184so64863010qkc.1 for ; Sun, 01 May 2016 08:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troodon-software-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=vUg+3uuLV+uKbVKvBb3nLvTabX0cCj57B0Tc+skfJ20=; b=DmtP8rLYmcffWJMkc8KvsPUdWwX6GJDNYHY8496uLzXFblwpSbivaLoYEpO2Pi1Utr k8i5Ar7PtgZz3XipmiBA9BgXewqxls7CRsoWNq1BYRKY8r7n27g5P7Ww6OAqhGOHruhv DqkqyxPyjNBavPbeSaZUWc6+FbI/f/qpr7sPB9/ymUQHMnBaM4R3diu4tOpF74qJAr+3 cXcHKjrYXMueFpr+dwepksqSaQXffkZPnA4zvQzz5ngTTPEbZ1PVScNWy4rtB7EmkldS GpBtNuqpl43yCi5EXUl/vQQ6Xr86RgqwKy93EGw5Z0T/SlsbocW4E3C3iAoSgEN2ug3E gc1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vUg+3uuLV+uKbVKvBb3nLvTabX0cCj57B0Tc+skfJ20=; b=LfBmKvhWH1hPqS6GsBMdYKMx+u3WKMmzSRLJWShMy/UaCqKaF0WU8/F7GynGZevqe+ ZSakseBcbabxVA2U1JpXPHzGle0keo6wuo5IQiyP85CFsbOpQL0e92WijORqrA6sLZpk ln8ACJE+mbBsyBq/Q0k5tfEDsBL+XPC6JSLZS5YoxKvJBGnOZZT1L7RtnM3JHpxnP71u A0IO3FDhJJyKjsQLF3wMT/4d8IzyKzIlwTrtJEc6AZSYiUmLyoRYylU/iL+G2L1HpQUN 91ez7bg/sXvQuyW7LhkDIlYLLfNOEq+7jHqiCbbPUy3jCRcIfXQNrp4kGQP0Yff+S+n4 ct9g== X-Gm-Message-State: AOPr4FUxwanmWZd9ySpMM/Ia9avyaVP7py9oh4fmcA3byoa/Vdt86V0YTEsIeO77tykhLw== X-Received: by 10.55.3.8 with SMTP id 8mr28860669qkd.12.1462118355668; Sun, 01 May 2016 08:59:15 -0700 (PDT) Received: from halfmarathon.home.hunleth.com (pool-100-36-100-112.washdc.fios.verizon.net. [100.36.100.112]) by smtp.gmail.com with ESMTPSA id 11sm7842612qkl.40.2016.05.01.08.59.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 May 2016 08:59:14 -0700 (PDT) From: Frank Hunleth To: buildroot@buildroot.org Date: Sun, 1 May 2016 11:58:07 -0400 Message-Id: <1462118287-5017-1-git-send-email-fhunleth@troodon-software.com> X-Mailer: git-send-email 2.5.0 Subject: [Buildroot] [PATCH] syslinux: fix boot hang when host-gcc is 5.3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 --- .../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 +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 + Tested-by: poma + Signed-off-by: Paulo Alcantara + Signed-off-by: Frank Hunleth + +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) {