Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp425720pxa; Fri, 31 Jul 2020 16:19:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJx2qms++pZGSPycYcLoN1RXkt91X1oNXYm8N8JXV1zwX1jTebzhwB98iZdvN3dRH/xapu X-Received: by 2002:a17:906:a219:: with SMTP id r25mr6393474ejy.201.1596237549654; Fri, 31 Jul 2020 16:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596237549; cv=none; d=google.com; s=arc-20160816; b=cC4I9jRTYFKmz+XpT9DMmnVRg2DgyYR8lboheV/ZNVfP2qlEobDxls+scXGK+QMPyW GypaAB7G3m4l8wPl+EUBuoblbF8Ic7pTLxqndvgvc+zCGoYYyXGFUUDHR0MOehvvHnoI Es4RhIOjXnMgJmVaEcsnMnXJfdL2/eGhDE9b1fhfUxUP/4Fv/UrPEDXpb2v3n4slszTX jzV7xjlV5XEdsp0THNF/5Pjtbv4ormQB+uGQWaBDFN1o2CMVkIp9vO1ZJWFxhnfIR8Sv lUy2qKneogh+Vw/gWybA/6eWPgFhWwfmQLFfqTKvyVkaLaq6g+Uxw4RrqaA3slBFG2ZP zpBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=RQUBQpcBephhHEpYO84oC8aukGIaKViEUy2T2ombvEnWYOyrr5JwBd10xK3Eo8K+QE jSbpzozjmk0v7H5c5YyWWjIJSCynjh+Ovf4Nm2ErD2X+6PM+vEyzs5a9x9CzC5XP0jfG k+mR95v6PkJEPS/MuMUiywQOJ42bYC5eA8lcxs0XQEiIVMenp0Txuwh/U+VojM4lcHgC fl4M9Q+CWKjdJGpPSFj0BG/sknyJopWXqdX4LihpVxNGxTVmmtfUZ1pQ0je9CayHiyR4 2eXCktdSQHUzlj9+pgqn5oanom9iMDiX3sOofSYDIecD87eWW/Thw8txcakRLWK5Onwj kDsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=d1nsCRiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl7si5623431ejb.264.2020.07.31.16.18.47; Fri, 31 Jul 2020 16:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=d1nsCRiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727968AbgGaXS0 (ORCPT + 99 others); Fri, 31 Jul 2020 19:18:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbgGaXST (ORCPT ); Fri, 31 Jul 2020 19:18:19 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA045C0617A1 for ; Fri, 31 Jul 2020 16:18:19 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id o13so16817803pgf.0 for ; Fri, 31 Jul 2020 16:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=d1nsCRiVeR5V7xSyyra8TUXkzVGGZyVGicIMpvsBxz4UYBltmv2pChbuD9HAWx1JRZ nTzgrAEI4ydMYR6/86qDA5RBERE0C3DwH6MGQ/ocUxKfyvRkYDsOGgPU8V7aUbsGFQfr K/ypLFr1ufBcI2TdFJYN71D2tSdiicMgRSswc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=hZkt/3UImIaxplowxSL5COdvnsHZa5Poa1X7cwCxu1tVTrJRYEvhQ8OmiZQ/6w/mGf FTQTdwfKh8xLXe6mLgszcjDRE2Gk0E68aI8idFSLRoaB2advEJ9/Dax40u/LeBimeuU3 vypp/jAn/EcsA8OQMSwwefjrFSWaG0bNpFTlEiZET5xrid3T5bqTZ8267NoogXYOIJwX EkA/5F6qmuJmnjefA/ziqOYC4nVY7m4A41l1bnWCyCVxLjFIpZ5sX2z5+Rs3IcydJSLc kASUv9QbV8lla2pzh9evChT5t+taGvJX3lRfB/AEq3HeDU5uGx2H2POJCUgP8rxSyAXq fr+Q== X-Gm-Message-State: AOAM531hhFd8jgEs3+OQW5jfLr8ntqeZ3+pOOF1mUqJOHqFuktkS73WN GkAa4Fcp4ok4o8fJpAD8XYyWFg== X-Received: by 2002:a62:2546:: with SMTP id l67mr5959404pfl.154.1596237499260; Fri, 31 Jul 2020 16:18:19 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c2sm11380501pgb.52.2020.07.31.16.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 16:18:15 -0700 (PDT) From: Kees Cook To: Thomas Gleixner , Will Deacon Cc: Kees Cook , Nick Desaulniers , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Borislav Petkov , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nathan Chancellor , Arnd Bergmann , x86@kernel.org, clang-built-linux@googlegroups.com, linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 24/36] arm/build: Add missing sections Date: Fri, 31 Jul 2020 16:08:08 -0700 Message-Id: <20200731230820.1742553-25-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200731230820.1742553-1-keescook@chromium.org> References: <20200731230820.1742553-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing text stub sections .vfp11_veneer and .v4_bx, as well as missing DWARF sections, when present in the build. Reviewed-by: Nick Desaulniers Signed-off-by: Kees Cook --- arch/arm/include/asm/vmlinux.lds.h | 4 +++- arch/arm/kernel/vmlinux-xip.lds.S | 1 + arch/arm/kernel/vmlinux.lds.S | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/vmlinux.lds.h b/arch/arm/include/asm/vmlinux.lds.h index c4af5182ab48..6624dd97475c 100644 --- a/arch/arm/include/asm/vmlinux.lds.h +++ b/arch/arm/include/asm/vmlinux.lds.h @@ -59,7 +59,9 @@ #define ARM_STUBS_TEXT \ *(.gnu.warning) \ *(.glue_7) \ - *(.glue_7t) + *(.glue_7t) \ + *(.vfp11_veneer) \ + *(.v4_bx) #define ARM_TEXT \ IDMAP_TEXT \ diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index 57fcbf55f913..11ffa79751da 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -150,6 +150,7 @@ SECTIONS _end = .; STABS_DEBUG + DWARF_DEBUG ARM_DETAILS } diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 1d3d3b599635..dc672fe35de3 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -149,6 +149,7 @@ SECTIONS _end = .; STABS_DEBUG + DWARF_DEBUG ARM_DETAILS } -- 2.25.1