Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp427397pxa; Fri, 31 Jul 2020 16:22:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaGvXPJmEJxM6EW7SpqgPalEMlKeJlm+pXTyNHpFW3D2I4XrI7S7A+6S5XB9YgtpfHBCA X-Received: by 2002:a17:906:57ce:: with SMTP id u14mr6661874ejr.175.1596237763135; Fri, 31 Jul 2020 16:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596237763; cv=none; d=google.com; s=arc-20160816; b=D3UHn5ywTeQ7lwfRal+/vIttqXkjlS8doVb+89F4j5Bnzc0f8fjymV2ux8vhvNPSZT vJVpO2tvDxdDWEBYcAVqbYzaXTLLp104/YNZh9c0T8nJvPstYGx6PmfG/EjmR/TgN2Mq q+hQQIcVJtRqcfuQW0QZAqN9tNY47mAxbpUGmZvpRQEORIJb1NDh99KhlCtpptpaPJ36 ywPK61EbI5+kDv4dFHtlO4X4jGqwc7rNSbjMaNe0QfLR1WLFCli2wlBsSE9H7e0KVQil 2ilvPv0xdXwMUQmdVpRsrTunNgiBBw5XICkBWyxucBn3hxMQ1SyoG/B8yUMlksRs3ku0 EnRA== 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=OztuNRy+U3SEjaM8AjX3NHKuvNzCSaFSb4g4nlKxjN8=; b=dPY6MrfKtMKEl3dkK+MnkGxBS+2/InAhHSLh60thbscfzVUfNO3VJ+VsqZJ8agkTBD bbddYvSl8MlavwkTtDcFS3kAPggMaAh6ZjY1EIp37TC1y8T4KIEMbUGc5bJtXQfAntIK NTOhY+YVTqf/2m8FgmvVC4HXllw8Sal0vhLnzXmdz5Kbzka24TgjSCwlwt8MjDfa+Pdq 6CeZucG9QnY3301KY9ixTB8qbq7Fcat1f4Bobw8VOQOn7VZtIQ/ii0mQbKwOJ6j6uxfy WCbAX5+Ym6Au02kQyTzr+9hGJRtJ5TrKcBeO+J5pZv7tt1aSquVG5jPZojjprb9U6s0J YOVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mhl2cYQ2; 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 k22si6151574edx.491.2020.07.31.16.22.21; Fri, 31 Jul 2020 16:22:43 -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=mhl2cYQ2; 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 S1728194AbgGaXSy (ORCPT + 99 others); Fri, 31 Jul 2020 19:18:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgGaXSN (ORCPT ); Fri, 31 Jul 2020 19:18:13 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102CCC06179E for ; Fri, 31 Jul 2020 16:18:13 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id lx9so8528820pjb.2 for ; Fri, 31 Jul 2020 16:18:13 -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=OztuNRy+U3SEjaM8AjX3NHKuvNzCSaFSb4g4nlKxjN8=; b=mhl2cYQ2YEfGFzqu0lUm7PTEdf3xYEpybnJ2cfLPuY6LR4v/YBY5dJ0ivTK2K5UAQM 0k9arXuQB4cv1bpNG0r3VncPs3HFypojskLqEB3mHI/LVxckqJONf2cBzIIP4It97oIL ccOz8l1eiz5ARWhIbuGZYnApCYc1UDxK86u0k= 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=OztuNRy+U3SEjaM8AjX3NHKuvNzCSaFSb4g4nlKxjN8=; b=SGRieyauZMQonZVl+C1HBQoykkE6gINAmRMse0oz6gb0ZE8Q0+Hn7sEjxLgYWMD6f2 67iShsjRmnkef2AEVJfUQqdRdTOXbx1LOW40y1ntUJ40XKwrBK7EBW5Ruy8tBKGTkI8G fqo5INkfOV0JwIDs2kBqvkc7jkvBCeONf3/kb11SEauP42628z8sA7wH6CIhNIyjrG6D 3Jbt1cqlgKN+aL60Lic5NNBj5jD2SvuTTyISIYfcPQHsKvZ9TEWOXVkxGSaL6MtVVwyu r/12F6EDHAyEQEPfVn3OJ8V9wDP6SMD7tdDDQL8+qODLAebsUW7IBh6vmhB9V/tjSWw6 6spQ== X-Gm-Message-State: AOAM531NeoIRskH4g4T4MRkN+DUDOGhaBaAaPaoCdhFJEtg60ZTZt9Rn dMMAvjKx/uT8TxuuJfyQ0MSqMw== X-Received: by 2002:a17:90a:6c97:: with SMTP id y23mr6284010pjj.28.1596237492647; Fri, 31 Jul 2020 16:18:12 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z9sm11932082pgh.94.2020.07.31.16.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 16:18:11 -0700 (PDT) From: Kees Cook To: Thomas Gleixner , Will Deacon Cc: Kees Cook , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Borislav Petkov , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nick Desaulniers , 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 19/36] arm64/build: Add missing DWARF sections Date: Fri, 31 Jul 2020 16:08:03 -0700 Message-Id: <20200731230820.1742553-20-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 Explicitly include DWARF sections when they're present in the build. Signed-off-by: Kees Cook --- arch/arm64/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 5c1960406b08..4cf825301c3a 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -240,6 +240,7 @@ SECTIONS _end = .; STABS_DEBUG + DWARF_DEBUG ELF_DETAILS HEAD_SYMBOLS -- 2.25.1