From patchwork Mon Aug 20 12:32:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 144609 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3919330ljj; Mon, 20 Aug 2018 05:33:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwqqdFcv7eq3RAazrFgLCxoYhPyVDc9mQxdB0h+xjXSY6BQ31Yy3/PJpIi1OxAZmmbD/5Va X-Received: by 2002:a50:aa3b:: with SMTP id o56-v6mr55108601edc.23.1534768426201; Mon, 20 Aug 2018 05:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534768426; cv=none; d=google.com; s=arc-20160816; b=QpRvkhYW0foGpiecnqfxkyPyhdMTPtTixmemR5VZG1lGENw7JeYc+sIdiNrc/fXOac 3EB55uZ/eBiOyI0pxRP3Umcb3IDr/o1F1Zk1Y6dVKWUWFQiTJQWtfstH0zTXJOccayzp iWj9XP9YvIP+lrQxuws3Le7wGQgrA2hYL5e1Oph4hnKsVgKEnxzP6x7a4GqOso/e73xJ yo4JpkkPR73MUnVtj2v0rhoqIkFS/pLDl+OAy5IMmjUBhlqLH5M3xl6S+i+Tx9/g+/VR DIqnodmyTmkvHtFRY0wEylJ4qW5hurHrIzx4DxNzxA596tBCRPAddu2dU8694hQ3hgeh g0Ug== 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:message-id:date:to:from :arc-authentication-results; bh=eHjtfMGhPI3LLViz7fS9fQiqeSVvYY+sobOZdWeKpgQ=; b=wBTjnG1pfaRic66zMTjqg2yscQ05PGqYcqFv8Mtss5Z85szEg6ImFRCKLMBmvvutEM Fzev+mPiknOhBcZWAOwJ9yUI4RhpVoNgo9WWYq0r0DPs4KJhlcGhTeXgIceI+VzRE0xi GhtAfmYBCTgTsfFt7OCDVUt2NqKqmq+e7u6jr4S9hm4IXBt1t1UaZXbEMf21+vqUY11U 7aJTsvPb9P6J3hFxGNMStkwmeBWrCQitLBDjUj8U+Ut+XCjAfqBoTPJQVgkY2dmlJ7g6 LvuLpTeX6CY8gqK/6VwQrbNyOB4VZTrWE13N8N1kgQnSXrW22jojr3ukAkybOgKahBHQ rjKg== 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 c5-v6si3280755edj.78.2018.08.20.05.33.45; Mon, 20 Aug 2018 05:33:46 -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 C9190C21E1E; Mon, 20 Aug 2018 12:33:06 +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 CB000C21E1A; Mon, 20 Aug 2018 12:32:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2216BC21C8B; 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 D469DC21C8B for ; Mon, 20 Aug 2018 12:32:23 +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 7E4BCADC5; Mon, 20 Aug 2018 12:32:23 +0000 (UTC) From: Alexander Graf To: U-Boot Mailing List Date: Mon, 20 Aug 2018 14:32:17 +0200 Message-Id: <20180820123220.55342-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: Heinrich Schuchardt , Tom Rini Subject: [U-Boot] [PATCH 0/3] efi_loader: Fix -fdata-section fallout with bss 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" While trying to fix efi_loader problems that could only be resolved by enabling individual function and data sections (commit 7e21fbca26d18 "efi_loader: Rename sections to allow for implicit data") some cases where .bss was included in the linker scripts slipped through. This lead to random breakage when .bss contents were accessed, because the respective regions were not initialized properly. With this patch set, all those should be resolved now. Alex Alexander Graf (3): x86: Include bss subsections in linker script x86: Enable -fdata-sections always riscv: Include bss subsections in linker script arch/riscv/cpu/ax25/u-boot.lds | 2 +- arch/x86/config.mk | 4 +--- 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 +- 6 files changed, 6 insertions(+), 8 deletions(-)