From patchwork Tue Nov 14 01:55:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 837664 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="oO7PgjSC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ybW7057r0z9s7G for ; Tue, 14 Nov 2017 13:05:16 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 61C0AC21EFB; Tue, 14 Nov 2017 02:00:15 +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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 06530C21EF0; Tue, 14 Nov 2017 01:56:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1BF8BC21EE4; Tue, 14 Nov 2017 01:55:27 +0000 (UTC) Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) by lists.denx.de (Postfix) with ESMTPS id 7B422C21D90 for ; Tue, 14 Nov 2017 01:55:22 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id r128so12672268oig.9 for ; Mon, 13 Nov 2017 17:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ro3sKls6o1yOkiVetgZe47maT04SLTKS2+NeYqGBQRU=; b=oO7PgjSCBeCEudPOKRMMT0Gkz7rxvusFYfMgaRuX6j7EbvAX6wxh0iaiKhXfVgWzBe dRcj+c4FAHhnTn1PnHbOwhsTc57XzBkVO1G/aJgGWv3fpjhSm9loFmc10QkpxmVZBtsg 4B3mN1Wu3wip1KmZNIsMhZBkROJQ0D2xGWYozzr4x1Q6gj7oMUWBh6u47m70dAUNYoAJ PVUZPCBWFpghyo0IoHjgxMgIC3eZEHnmt4TSk66yOs/8jDyctUIM97sNB441OUhkbwqq IiMQPyvs8sktJ8pvsXYsbtIspA4w/P61LPd1SuYKne6Hi6+bQFYi8FyvrFBhIBfv82X1 gudQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ro3sKls6o1yOkiVetgZe47maT04SLTKS2+NeYqGBQRU=; b=uRVxs83MbwNSxwX709ejltJq7qzUauF5A8AxUIURNZXandBkEH5003Awu3ghx9xhnw G48LGfVcqS18H+ddAFA1YEl8zO3OxhxnT8vdmRPiMPQsgRqidbiht9WyyTawlnOSRU+F M3tgTJHPR+vcQKNn/g0c9TqeKb5py48I/Nu2BeuD62U2eF65W9AerhnZmETfDmchmOFa hlQHjcINkKEsLFt0y7tX6ylvnOKeWf9IExe6vVlV0Ik6906M+JwhE4GU9ZqRi2XJuWLI 9ZRtDST+ypZRWBq2BqJ2gX08bSoujsaEWQoPhuBHDP2uEt4wSeop3nzJFtp43YeoBOMx BwmQ== X-Gm-Message-State: AJaThX7VQ/G15cEK/aSXQ+VPHOw3d1HnqbS3wuoHSD0Tw46mJrl61Q68 oh/txXbDtUhA5bAguQQcRHR4rQ== X-Google-Smtp-Source: AGs4zMbEWopx0pxmgGLvs6kpkoNLGWe3tbYyLxmN8ZFQKeKHwWiYScHPAs+CbfW1kFYX+++WsaF3PQ== X-Received: by 10.202.96.194 with SMTP id u185mr6390377oib.94.1510624520978; Mon, 13 Nov 2017 17:55:20 -0800 (PST) Received: from kiwi.bld.corp.google.com ([100.101.164.89]) by smtp.gmail.com with ESMTPSA id v33sm5548690ota.29.2017.11.13.17.55.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 17:55:20 -0800 (PST) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 3E517140B42; Mon, 13 Nov 2017 18:55:19 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 13 Nov 2017 18:55:02 -0700 Message-Id: <20171114015506.25673-10-sjg@chromium.org> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171114015506.25673-1-sjg@chromium.org> References: <20171114015506.25673-1-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 09/13] binman: arm: Include the binman symbol table 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" This area of the image contains symbols whose values are filled in by binman. If this feature is not used, the table is empty. Add this to the ARM SPL link script. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/arm/config.mk | 6 ++++-- arch/arm/cpu/u-boot-spl.lds | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 1a77779db4d..eb2ae532bf1 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -136,10 +136,12 @@ endif # limit ourselves to the sections we want in the .bin. ifdef CONFIG_ARM64 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \ - -j .u_boot_list -j .rela.dyn -j .got -j .got.plt + -j .u_boot_list -j .rela.dyn -j .got -j .got.plt \ + -j .binman_sym_table else OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \ - -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn + -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn \ + -j .binman_sym_table endif # if a dtb section exists we always have to include it diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds index 068163b73a6..65f7b68861e 100644 --- a/arch/arm/cpu/u-boot-spl.lds +++ b/arch/arm/cpu/u-boot-spl.lds @@ -36,6 +36,13 @@ SECTIONS KEEP(*(SORT(.u_boot_list*))); } + . = ALIGN(4); + .binman_sym_table : { + __binman_sym_start = .; + KEEP(*(SORT(.binman_sym*))); + __binman_sym_end = .; + } + . = ALIGN(4); __image_copy_end = .;