From patchwork Mon Aug 20 12:32:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 144608 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3918371ljj; Mon, 20 Aug 2018 05:32:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPymAcummdGD2tLHj14sepaSbPrjboRJLXsl33tn6lG5krxyxMVBzOsrOeMAAQpcy3dc1J+o X-Received: by 2002:a50:a542:: with SMTP id z2-v6mr53757621edb.77.1534768372836; Mon, 20 Aug 2018 05:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534768372; cv=none; d=google.com; s=arc-20160816; b=F/KNqOvdbq70huDKCxD7rlnZiE/+7oonjnm6cv6NOPGq20s/DYGT9KJoMbBbjU2y+c +hfio6Ik9HKfvSOdQrah1UJqRVgqFR91nEZfRnlr28Nv+dL3jXTX1lZJkqb+Fq65Q8us 69XE26ZeMV29TLwhwvfOd+QcOJUM0WbqwITG2L1mObPsmBjSE3XsoBqzjFDFoh/mFUMg A1KcDPvg3VZo8gnOipRvxMQBqDqkH+lC5ZzXwsunQD7dYLPzzJsrvtfrF940MUc0W7Fg SQn34qQUOVhSduYqCgL9KMdTlzThE98HY7G8o/fDXSrIUllhvKT6FuOq6eByGra1Px0f 3eQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=U/HkMIYPOlT+U0tOpVLNGzmdN2b7JryHzQG4/u17Cqo=; b=Dt1WNsaK1PbidUyT1d1b9HGa+n8a3lDDjD93FNXDTyjT+JqyalHRbUg7LLxioNQpWC E3TXDkWMMBvMdQooW2SxmmOKGBNo8ep5cmMzWqelqj+toYLSUF0RHml52SM4VvufzzZ1 VxdC42/H8xQpi6nlj5nqyJH+Sl8Vi+JeZm9Bs45Mdy7vlVlHPRASAZaA74l3LYWh1zJG T2jIVA2asFRV7FGHDFUJgaCwnnEvDgKetLfKCSbhSov5joIyN2u5FTvr3STrD1OfvdMo DgSCbBqOFuA6isHCzxy31SlYfIKdTvqtNprHWzuZzzyUwim4CkzSHBLYykexQVwIsJsV vf8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id o13-v6si2335360edh.418.2018.08.20.05.32.52; Mon, 20 Aug 2018 05:32:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 5661EC21E34; Mon, 20 Aug 2018 12:32:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 03235C21C2F; Mon, 20 Aug 2018 12:32:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 17C95C21C2F; Mon, 20 Aug 2018 12:32:24 +0000 (UTC) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 088B3C21DD9 for ; Mon, 20 Aug 2018 12:32:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8015CAE50; Mon, 20 Aug 2018 12:32:23 +0000 (UTC) From: Alexander Graf To: U-Boot Mailing List Date: Mon, 20 Aug 2018 14:32:18 +0200 Message-Id: <20180820123220.55342-2-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180820123220.55342-1-agraf@suse.de> References: <20180820123220.55342-1-agraf@suse.de> Cc: Heinrich Schuchardt , Tom Rini Subject: [U-Boot] [PATCH 1/3] x86: Include bss subsections in linker script X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When we build with -fdata-sections we may end up with bss subsections. Our linker script explicitly lists only a single consecutive bss section though. Adapt the statement to also include subsections. This fixes booting efi-x86_app_defconfig. Signed-off-by: Alexander Graf Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/x86/cpu/u-boot-64.lds | 2 +- arch/x86/cpu/u-boot.lds | 2 +- arch/x86/lib/elf_ia32_efi.lds | 2 +- arch/x86/lib/elf_x86_64_efi.lds | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/cpu/u-boot-64.lds b/arch/x86/cpu/u-boot-64.lds index 862aa2d35e..98c7f8e9c5 100644 --- a/arch/x86/cpu/u-boot-64.lds +++ b/arch/x86/cpu/u-boot-64.lds @@ -95,7 +95,7 @@ SECTIONS .bss __rel_dyn_start (OVERLAY) : { __bss_start = .; - *(.bss) + *(.bss*) *(COM*) . = ALIGN(4); __bss_end = .; diff --git a/arch/x86/cpu/u-boot.lds b/arch/x86/cpu/u-boot.lds index a1cc19ce4c..a283c290ee 100644 --- a/arch/x86/cpu/u-boot.lds +++ b/arch/x86/cpu/u-boot.lds @@ -94,7 +94,7 @@ SECTIONS .bss __rel_dyn_start (OVERLAY) : { __bss_start = .; - *(.bss) + *(.bss*) *(COM*) . = ALIGN(4); __bss_end = .; diff --git a/arch/x86/lib/elf_ia32_efi.lds b/arch/x86/lib/elf_ia32_efi.lds index 983fabbc4d..aad61e7f81 100644 --- a/arch/x86/lib/elf_ia32_efi.lds +++ b/arch/x86/lib/elf_ia32_efi.lds @@ -46,7 +46,7 @@ SECTIONS *(.sbss) *(.scommon) *(.dynbss) - *(.bss) + *(.bss*) *(COMMON) /* U-Boot lists and device tree */ diff --git a/arch/x86/lib/elf_x86_64_efi.lds b/arch/x86/lib/elf_x86_64_efi.lds index 7cad70a2e4..b436429b33 100644 --- a/arch/x86/lib/elf_x86_64_efi.lds +++ b/arch/x86/lib/elf_x86_64_efi.lds @@ -44,7 +44,7 @@ SECTIONS *(.sbss) *(.scommon) *(.dynbss) - *(.bss) + *(.bss*) *(COMMON) *(.rel.local)