Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4684324img; Tue, 26 Mar 2019 14:38:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpMwEN59iafMsrrp/xvguYc+baGZd+vslITpiFs98G97ak6gFF3+If/EFM8rbX3mCR0O9r X-Received: by 2002:a63:490f:: with SMTP id w15mr29456412pga.247.1553636334847; Tue, 26 Mar 2019 14:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553636334; cv=none; d=google.com; s=arc-20160816; b=z8rlS+Xbf+Y/BOLdQgbj2l3z24rOJGk4NJ6YVVXMKe0Hu9mAVCMt4NldoMg6qJp890 blo0X1VacaiaaR2X2C+BweEaCn7q1prJupth5U89W8aMNKIGTDpy7Ir/mrkU023Q/jF+ 978aGCx4YQJlOFH09xM6ZWK9p5Wi1Aj+1e72eZWQm6ievBg+7AhJ+RRMNnU46f/uEQto Dk+H8xQxsEY4rgLMcIB9b9gSscS5YUSmCFTcsDVQ7Mzh2bwKKlQ5D2rGi2QgMrZt6qDz 63wUI0n6783g687lHAjW37BFQ4ur4v6u/LfM0L4fIkIpCkWXFXKqioPq59JckhSFLKxr MBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gqNLoSgB5dywOU9cMzqZ5p5/YriZIjZjlD3LtPRZvvo=; b=LL8q0z+B9AdBgJ8Jzl1x6rhaoqz43rbc3/0JTtdtjfOZayHQrkml4ND9r1xyDAksy3 zRcBLjeXGjv88JKLRsVkIT4t2GcP70ggmitCsL9QfFzQfNpPc+CPPohMZ+8q/6U8k2Mg gHQHm8niPwwdg60sX1IvJT9FMjLh8slLJoHd0DGtow8NPKb8rs35p9UzCThDiVtVmhXl 7QkcPJ0GK/ydWhx6rPPWHANnmhuy5nhetUW3yGnn/Gl6ui/KXNb6qBX/C9Mz+v389e2Q mpxRwBzl3ipa6lN5MH2uxz4VO9uIVJBW99sP3R0mq8uHVErnuzoyiHg//ZTnKCIx1zlh ursg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si17335385plq.183.2019.03.26.14.38.39; Tue, 26 Mar 2019 14:38:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731840AbfCZViE (ORCPT + 99 others); Tue, 26 Mar 2019 17:38:04 -0400 Received: from mga14.intel.com ([192.55.52.115]:54534 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfCZViD (ORCPT ); Tue, 26 Mar 2019 17:38:03 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 14:38:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,274,1549958400"; d="scan'208";a="137508707" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga003.jf.intel.com with ESMTP; 26 Mar 2019 14:38:03 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 1003B301BD4; Tue, 26 Mar 2019 14:38:03 -0700 (PDT) Date: Tue, 26 Mar 2019 14:38:03 -0700 From: Andi Kleen To: Thomas Gleixner Cc: Andi Kleen , x86@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text Message-ID: <20190326213803.GN18020@tassilo.jf.intel.com> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-3-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 06:03:59PM +0100, Thomas Gleixner wrote: > Andi, > > On Thu, 21 Mar 2019, Andi Kleen wrote: > > > With gcc 8 toplevel assembler statements that do not mark themselves > > as .text may end up in other sections. > > Which is clearly a change in behaviour. Is that intended or just yet > another feature of GCC? I'm not sure it's a new behavior, but I've seen it first with gcc 8. > > Your subject says: 'x86, lto:' > > So is this a LTO related problem or is the section randomization > independent of LTO? The basic behavior is independent of LTO, but I've only seen failures with LTO. But I believe in theory it could lead to failures even without LTO. -Andi