Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2299077ybi; Mon, 1 Jul 2019 09:35:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqymzAiIu7oXV4hi5Ygc/9OZXUh0nGiFhmtxH2d9oreUCtp9yb6q+ue1gh6fSQbe8mFAw4Bu X-Received: by 2002:a63:6143:: with SMTP id v64mr25254446pgb.407.1561998922709; Mon, 01 Jul 2019 09:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561998922; cv=none; d=google.com; s=arc-20160816; b=SF0tOwWnBcqT9lnP86qIOnZ1hs/6x/1xQLcrGsfmPcU8hWp4RbD5BDo4gWZIq7GWkE oG31lRvc6zRIVoPAGhgCezhx1gY0F1a8cU539OJL+/laXwxQC+VTeIRVAJP8yv+sFysO QTEMq7p3OxbIhCNgpyfTSRmrWVF/TPwqfazFz4GPE6WUlZD+MZnXpwE3VlImHU6M4lgS kRpN+bb6xubcsI8WpVHGVkrj3xGMP9RhQu8TSR4TF+W0ZLvazfbU9R189ByeV4V5w0eq 0bDWyBE+jaSa9p5EeIO2lrjifkLl0DUtCYxxAS0BnVt3KJKJd8DMhLFmjb5ZZOrzkUFY OKKw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ljuESl5eqxUihWHOzj/6lzShmRXZDNI/SwprEvqSgi8=; b=KFRIWi+DiesHKP5pru6FWsPmk2rzfzMu3PW1ab8Tjq66/eQ1us3GNB335iVNFb9qo8 x/nJ4suLP/tUyjlMebds/g2r/Xq0t/k3yshNhH9DgmOaiMuc4TH3YEfH0i2t5HF4eKJc mLn2cntKNDDkq92q8ZXeHdGIPyfqXgeqgr3+8TRICHkc7eKr1/4qDIQCeWbroP82uIW/ za5ys+ZQLt3a7RM4I/XqRKrI9PVGyJQpQagaL8jzei+qDqsGK6ILWy+3WoxnQptvme+v 6RhOzQJyEDWOLqcCrOKST4QOI6R/ik/6sTNl+Iamb+FodJRxRYsgGyayJQIhFbLOF0Jy xWEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LzwbbBQ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y2si9965032pgp.284.2019.07.01.09.35.06; Mon, 01 Jul 2019 09:35:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LzwbbBQ0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730039AbfGAPwW (ORCPT + 99 others); Mon, 1 Jul 2019 11:52:22 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37308 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbfGAPwW (ORCPT ); Mon, 1 Jul 2019 11:52:22 -0400 Received: by mail-io1-f67.google.com with SMTP id e5so29939821iok.4 for ; Mon, 01 Jul 2019 08:52:21 -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:mime-version :content-transfer-encoding; bh=ljuESl5eqxUihWHOzj/6lzShmRXZDNI/SwprEvqSgi8=; b=LzwbbBQ0gRBhhYkuMgF89Uv+5nF6LufoX3jkv984WIcb2X1nlh16MtlHvMTKeM0Q3B bKd8T+OkCYWmO4sMkmlmKhlR44ET30TC/mzO87QqrXvo4YFhp7oLYYiJ4vHHocSm1bUM mqRhrv9RxXrpP3O4vmYmy14X3dyIhGnlVq8gg= 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:mime-version :content-transfer-encoding; bh=ljuESl5eqxUihWHOzj/6lzShmRXZDNI/SwprEvqSgi8=; b=RHfXfjGHamdHOzmSp8sz9DX7bTmXbGpaSAza15JiNz1h70AFaD9Etfx4cOVbDzX+0K zKcb7ifhIDZbPKQ648JOgwGbtQfhulVUH3w+HcU4i76PUimBAQVU/kNx/NOU8Q0DgM4f 8yGDEnHWUKXjfpoD8Z3CZcD4iyV8ijvwjVZ3QL5V8DfRT+KwLNJZ3oBy2VETgbaXqoBL yPr6bYRLZOs4DIYMCYkjiAPDAiDYvzjDySuG6N+oLSdDfwooZbGTXJewFr3UfjLZe5If U2TIwt4EohM4g/fTaDZWG3uLeKSZw0y3e/EH49II+0MSTKx86MwzblxK1HTcNIyYDLLp kURA== X-Gm-Message-State: APjAAAVmQZcKFtdZvrprexkfuE/5IWfUpiCI+4948F9fDI4CnX+fN65C WUWfaANnlUKlvtkYjJk9oXeLdi8aC6A= X-Received: by 2002:a6b:14c2:: with SMTP id 185mr28517852iou.69.1561996341165; Mon, 01 Jul 2019 08:52:21 -0700 (PDT) Received: from localhost ([2620:15c:183:200:855f:8919:84a7:4794]) by smtp.gmail.com with ESMTPSA id c23sm10332157iod.11.2019.07.01.08.52.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2019 08:52:20 -0700 (PDT) From: Ross Zwisler X-Google-Original-From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Thomas Gleixner , x86@kernel.org, Kees Cook , Johannes Hirte , Klaus Kusche , samitolvanen@google.com, Guenter Roeck Subject: [PATCH] Revert "x86/build: Move _etext to actual end of .text" Date: Mon, 1 Jul 2019 09:52:08 -0600 Message-Id: <20190701155208.211815-1-zwisler@google.com> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog 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 This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. Per the discussion here: https://lkml.org/lkml/2019/6/20/830 the above referenced commit breaks kernel compilation with old GCC toolchains as well as current versions of the Gold linker. Revert it so we don't regress and lose the ability to compile the kernel with these tools. Signed-off-by: Ross Zwisler --- arch/x86/kernel/vmlinux.lds.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 0850b5149345..4d1517022a14 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S @@ -141,10 +141,10 @@ SECTIONS *(.text.__x86.indirect_thunk) __indirect_thunk_end = .; #endif - } :text = 0x9090 - /* End of text section */ - _etext = .; + /* End of text section */ + _etext = .; + } :text = 0x9090 NOTES :text :note -- 2.20.1