Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp973154ybl; Fri, 24 Jan 2020 13:00:24 -0800 (PST) X-Google-Smtp-Source: APXvYqw9JkCDPUFP8qfXpDZafgpQnyJkH+yVwROG42EQdXk4G0ojQyBkEEJZIgVIzw3mBHyGa/Fk X-Received: by 2002:a05:6830:16d1:: with SMTP id l17mr3945139otr.21.1579899624418; Fri, 24 Jan 2020 13:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899624; cv=none; d=google.com; s=arc-20160816; b=skugdSCJu6+SKSHp9fufNr+0t2cpYYgNBQh3qo0mW632DLLeAJ92MwIXW6aCPYjdte DSfWs00c0gU//cxFuH+FSuVO4dtJ9tjX+q9imElx7AQc2b0rZkMfgm0s5Ll7MgGLq8zF wwmp0RUFZHvbrw0emAQNBF0yghIHkkp7ytNcLRm5Y72xZRKz+iFNqckjrSVpD2WwFgpK 4e6lejVCdJ+YbmRWTXghogYV+4MzQ0yx37qFM4RpTac8O0SAr+bzhOa45WEkMS3AuOY4 ghh7iMooBUElNORnQW5cwA1Qm2kwPOuCuJOWedENNij+C72bihAd7Ee3BQ6PF5B1y3eH FAfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=9mhOOBaln1zZhror14LKgz2QMImQbKxsvSx5EqJTYco=; b=Js3hh2DoCOm4N13xAyaWbRLybsI0426tp6BwLkck1sHCNJjGxa1KzOt1G9xWd14UNz 6JAZs2rAQQWe+Xx9UraPX5CeFfQM4NBFhl9xw6+h/GRSt+rLB9utYp69azWHznJwFQQt k0lyS6dVBnoS6N0/VNm8Jp7KIunGsXss+Dl9lQAV4Ut9zznIgntMH4LU2upmjkwkguoD lFVnYh5Jgq5Vj+lBQcDUpx7HAuZMobxQBcCQVaKD0Qawa7eUqVIURVISEoCLdxsR6rXg eVemDNm09IebvEv1P7KLK5IfAOG+QGtICgPp1k1A5dojSY4fqGEVKaV00x+DoxB/yP1P qXGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=RAz2XKqz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si3751618otn.123.2020.01.24.13.00.11; Fri, 24 Jan 2020 13:00:24 -0800 (PST) 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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=RAz2XKqz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391308AbgAXSY0 (ORCPT + 99 others); Fri, 24 Jan 2020 13:24:26 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:39518 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388688AbgAXSY0 (ORCPT ); Fri, 24 Jan 2020 13:24:26 -0500 Received: by mail-pl1-f193.google.com with SMTP id g6so1121324plp.6 for ; Fri, 24 Jan 2020 10:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=9mhOOBaln1zZhror14LKgz2QMImQbKxsvSx5EqJTYco=; b=RAz2XKqzUHmBbVViY3hzlE3l8UVNZTFV4R+rsWtCs2WWvWycSFgjQB0QbRKtiuHx8Q 7mzLNFFxaoX9TPngj3lekw2U83W5j/BbhKwipJC/tZ0ewoJvxDhqykwnehGnL0DcMzUm j2BtFGCkgtb1YZEpyd3vipcrhZScVHRs1AS4JzOpWO2Ic9cYMs7pEiMCVjVZS2Tgl20v QDsYWsaGTmJy0sxi9VP+gy6ou4hQL0cMoa1/dLDPmZ1K7j4Brnj7cEGiRQu1zL9aKFc+ TrXVsEV+WlozkDDHAUIlrsHu29qHKZSl66fzKVmLznnZOLGs8Ae7nO+dtl8rS8GeHKzQ tsIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=9mhOOBaln1zZhror14LKgz2QMImQbKxsvSx5EqJTYco=; b=gk2RPvXMSdyqsg1RABqh8AZh9KGWnlwChMyZMaKxYV1XSvGr+Nk04JpBPhMpIcFf4e tZk+JS0tIalk4FXnQ20vgWNEmVKmrxo9n3uGv3pcnLIqyGYU203boEZxCEut7fQxvAri kGF2ZhwlPoOKJEcOLt7z16nh0zTyd4MAK6dGKDqpr97rYNKmT48KOEMu5M8QPftSKg5f yCkDWzaKhaqKB6VqT4G2RLTOXm9YuVISiJvBf6Pfab4jJNcffgLhwRuAK4HUIER/3p7D zKy9B31SzGZPLBqwDVIgPNoS9C3TIG4kDLs0DcNBOxSw2FimLzm5u+jbUdZOXUDXuHah 9HcA== X-Gm-Message-State: APjAAAX9LBHH0ti7fOUAcAPt4BNwVFhWXUprKhfe+RoqVLhyjfKYCrif bjkEpw2xuzXE8c6Ts280k983xqUNTZU= X-Received: by 2002:a17:90a:1785:: with SMTP id q5mr534719pja.143.1579890265307; Fri, 24 Jan 2020 10:24:25 -0800 (PST) Received: from ?IPv6:2600:1012:b014:f2f6:cce4:b529:529e:9b98? ([2600:1012:b014:f2f6:cce4:b529:529e:9b98]) by smtp.gmail.com with ESMTPSA id l2sm7153286pjt.31.2020.01.24.10.24.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jan 2020 10:24:24 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] x86: Don't clare __force_order in kaslr_64.c Date: Fri, 24 Jan 2020 10:24:19 -0800 Message-Id: References: <20200124181811.4780-1-hjl.tools@gmail.com> Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Yu-cheng Yu In-Reply-To: <20200124181811.4780-1-hjl.tools@gmail.com> To: "H.J. Lu" X-Mailer: iPhone Mail (17C54) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 24, 2020, at 10:18 AM, H.J. Lu wrote: >=20 > =EF=BB=BFGCC 10 changed the default to -fno-common, which leads to >=20 > LD arch/x86/boot/compressed/vmlinux > ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition o= f `__force_order'; arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first def= ined here > make[2]: *** [arch/x86/boot/compressed/Makefile:119: arch/x86/boot/compres= sed/vmlinux] Error 1 >=20 > Since __force_order is already provided in pgtable_64.c, there is no > need to declare __force_order in kaslr_64.c. Why does anything actually define that variable? Surely any actual referenc= es are just an outright bug. Is it needed for LTO?=