Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5364627pxu; Wed, 21 Oct 2020 23:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPzcC3nGKogZBMVezed6MtNHp72eCPmt74BPsCs00HdpnYDNinN3YXCuHamX6PIGdMP8TU X-Received: by 2002:aa7:cb82:: with SMTP id r2mr874862edt.306.1603348265326; Wed, 21 Oct 2020 23:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603348265; cv=none; d=google.com; s=arc-20160816; b=bEIpZVcmLDPApKeg+zAlyqiHGKGRNAQTk1goJE1m24fZdM0zZZ/wpXsp3LlmG1QDuo TfvRcRdn1zlnSzLGPqDf3kxSGnKrCmL6/0UlqR8cwcRDHO6zLn0BszbeRQHMfEvpsQ6D 9GseutIOjpNFK57hitQejZgwOMnyRoJA2wXIVeLczp9k5s+fDvPFTvbmthcnCLfdANNt +pQElMoXxYhp/z9tMI/EjracaL5dI2Z6ZrBTxG+aumfSrQ56IjEIsjxoKSFljvs5jtNu JcKpbZhCTMIVXAEA41cGuVOEkBCa97MrICHlz66MdRKEdFi+GRaqleaZ2AqVc0wUShtk T1Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mG0a9rqNQYUWVfRTJS/8XhFObf4suQPa1m0uqfzYDHk=; b=ed8WQLK1jTObqYL4lAQwwEiO/zT96NVnr5053jidrbPYLu0+L9WDdJQQEnQSUe+o4f SKDCwDuirAq2jtWQ0dFBzmjGKS5Hj9xs0noDsIaMaQutezY3n8uDNQJsx9r/OgS7qeRP rRefUj3RIl2aMRPNPM9jjEZ9rbUaRXjCUcVm/UPAOAajT809h52st3zVc7z584XLoI9P DxuDvu17iNS4SPn637doX+4mPYWn0h/rZ4cGQSB/SLUf6UfGxfJua2p+iyNRdFA8L36n yG4zcsaT/FfqVwg75Da5ROksh8VgJAehr7PnoTu7XBDyP4zAge6xo6mMIY4PAZORS3h2 J7fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D5rkEL0X; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si398996edq.44.2020.10.21.23.30.43; Wed, 21 Oct 2020 23:31:05 -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=@gmail.com header.s=20161025 header.b=D5rkEL0X; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503776AbgJURyY (ORCPT + 99 others); Wed, 21 Oct 2020 13:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503770AbgJURyX (ORCPT ); Wed, 21 Oct 2020 13:54:23 -0400 Received: from mail-yb1-xb43.google.com (mail-yb1-xb43.google.com [IPv6:2607:f8b0:4864:20::b43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5735C0613CE; Wed, 21 Oct 2020 10:54:23 -0700 (PDT) Received: by mail-yb1-xb43.google.com with SMTP id l15so2529859ybp.2; Wed, 21 Oct 2020 10:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mG0a9rqNQYUWVfRTJS/8XhFObf4suQPa1m0uqfzYDHk=; b=D5rkEL0Xk9KXntswbHPrbo0xH/XY7nNcxp8mSGe/fs6A9y4GvHFcGaaj0wHRM8Vo3N LZxyWpWwUFpGCpIbdr4IgfV0wfknp8iWfM6rFlEqA4jAHgvL6RHwpM+yyps/TXDOirFw bdv6nkl3GEPFgyT13Fx1BNh0Ao7HmVnJbcPVb1M3mibaIUkK3RcEJz7wyjM9rKFZfo4B ABUSTySNa7MjDyQkxNT9doa/SNnan+UEECdyoqfzVLIMgiVM+WoQSHnsXZ9OU1RPUTNb nlD4EtX5T6NLvZcdp2ZZrVSxX85yTmRYaC+aJlIkjm3UDFHT+VJhJowe4z4KvTClZFV0 OlUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mG0a9rqNQYUWVfRTJS/8XhFObf4suQPa1m0uqfzYDHk=; b=aoxErhsn3exlCZgwX7J19EaxJ7Sg34GKwSBbehZ6viAj6qIbz3YiUHlxlYZFNbvQW2 C9Q9eBq/neDqrfa91GI28/G0vttz2VeIS6U2tsHYjAHgjhlhpD6ieuTj+LA670X+UkcT pvhbt6W5afFqHdsu0DB+sP0ToUL8aFmAX9/yu0zCpfOlSjwVdNpmb3zX7o/Foicgic/9 7wjFQRWFz5kz2LXgROpPbFz5m3Xxt6+k1P/idT6Fo/IR42iex9eXiYCPKw7AmHn/TaeN oDiwxjiT2MgJq76FzK93VlRo33q7YLGQyVJmXZfmAMgs5PSqk7351hhpIvawFJW0hANr FVQg== X-Gm-Message-State: AOAM532Q+SKSez26OqcxF0S00wrbRIP73L3mHDaGXZh+xWFBR4qMjAzd BG0l/wZj+gT7/JLH4iYOHGQyhvy30iwLOPwbdL4= X-Received: by 2002:a25:ae97:: with SMTP id b23mr4316777ybj.26.1603302862474; Wed, 21 Oct 2020 10:54:22 -0700 (PDT) MIME-Version: 1.0 References: <20200629003127.GB5535@shao2-debian> <20200630124628.GV4817@hirez.programming.kicks-ass.net> <20200630144905.GX4817@hirez.programming.kicks-ass.net> <58ff47cc-dc55-e383-7a5b-37008d145aba@gmail.com> <20201021080031.GY2628@hirez.programming.kicks-ass.net> <20201021131806.GA2176@tucnak> <20201021134436.GJ2628@hirez.programming.kicks-ass.net> In-Reply-To: From: Miguel Ojeda Date: Wed, 21 Oct 2020 19:54:11 +0200 Message-ID: Subject: Re: GCC section alignment, and GCC-4.9 being a weird one To: Nick Desaulniers Cc: Peter Zijlstra , Jakub Jelinek , Florian Fainelli , kernel test robot , Steven Rostedt , LKML , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKP , Kees Cook , "H.J. Lu" , Rasmus Villemoes , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 7:42 PM Nick Desaulniers wrote: > > If you used some of the macros from > include/linux/compiler_attributes.h like __section and __aligned, I > would prefer it. Please consider spelling out __attribute__(()) an > antipattern. +1, the shorthands should be used unless there is a reason not to (and please write the reason in a comment in that case). Cheers, Miguel