From patchwork Mon Aug 6 22:30:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 143527 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3787824ljj; Mon, 6 Aug 2018 15:30:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeT0HTZgJudg9cRbfW983Cf/LDbMXPZ5pHUh81Jpoki7WyOwRswzJAXYAY4WXnrV6QEFM22 X-Received: by 2002:aa7:c803:: with SMTP id a3-v6mr19990912edt.124.1533594650041; Mon, 06 Aug 2018 15:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533594650; cv=none; d=google.com; s=arc-20160816; b=gSvycenHLnuRMEOmy7C9kf9DyGZWlVcXK79dFbYJLS5//vn/huj8vCePP1ZFI02W8J EJRWnp+dXIS8TL07OIlW80aanXo+bnXpIPZro2+nq4KC74MkHrYjVX12seP81k4xP5f1 CZSq4r9PI+eudDXru9HUH0TAyEExnuiVChgaviXHnFZ/KS7DCwOFxatPhc5EoLpL+oD7 0zl6nU8l+dIY+6P6hdo5uxaq8jD8RNlws1nGgcYy1AUBVinaVE8jHnJkfVUs64TMAbXD xR9vT996W1geSoA3Va5piTre2IFLuqK4d8mtywYce8szYZYez3OUnrw2eQa5sNgWf2i1 UOkg== 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:message-id:date:to:from :arc-authentication-results; bh=xCBwHw/fr+TYKTlQFKO9lFu14WoR3V9i6CF0sjFdM6E=; b=MuvnDg7VlLwzGfdZt6mpDJ9TSnq6IOgZ4H5yvzXOZpSjUEYdNuXghRAsD213kan3Rt C0srTszl9gy6sEDLaMGmz9aJuZyw9yR2AERbSwV5y9YOfOcq5t9PnSBgAr8EoW0QWiKp fJUIbKnbibZNm7b3105lrd3f/aSR6bLNcOrbGbDxCpcwkglbiHVb5s+G16VQnQh0Md/D +GOFZ3EmeQEhQ67H/qocidB4xu/xUgIwWxcOaUOUYkRaLFL9r5YPs0dLxp5B58vT6WaO LNRzDJ7TPX41xmwQrgVu0cisPPU5tX/HGNSN98sFsdTP0cArIqlsYPux+FVpI/KmwNOJ gCVg== 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 f25-v6si3673908edr.169.2018.08.06.15.30.49; Mon, 06 Aug 2018 15:30:50 -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 49FCDC21E38; Mon, 6 Aug 2018 22:30: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 03991C21E2B; Mon, 6 Aug 2018 22:30:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9B27DC21E2B; Mon, 6 Aug 2018 22:30:43 +0000 (UTC) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 4F647C21C2C for ; Mon, 6 Aug 2018 22:30:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BD37EADC4; Mon, 6 Aug 2018 22:30:42 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Tue, 7 Aug 2018 00:30:41 +0200 Message-Id: <20180806223041.45954-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PATCH] sandbox: Move BSS after EFI sections 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" Something went wrong when writing the sandbox linker scripts and so we ended up with a .bss section marker right before the efi runtime sections. That obviously is a terrible idea, as it may result in overwriting efi runtime code and data. So let's move the .bss identifier behind the efi sections. Signed-off-by: Alexander Graf --- arch/sandbox/cpu/u-boot.lds | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/cpu/u-boot.lds b/arch/sandbox/cpu/u-boot.lds index 727bcc3598..40c2214301 100644 --- a/arch/sandbox/cpu/u-boot.lds +++ b/arch/sandbox/cpu/u-boot.lds @@ -17,9 +17,7 @@ SECTIONS _u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) } __u_boot_sandbox_option_end = .; - __bss_start = .; - - .__efi_runtime_start : { + .__efi_runtime_start : { *(.__efi_runtime_start) } @@ -48,6 +46,7 @@ SECTIONS *(.__efi_runtime_rel_stop) } + __bss_start = .; } INSERT BEFORE .data;