From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id 5AE2B3858D37 for ; Thu, 2 Mar 2023 23:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5AE2B3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102e.google.com with SMTP id bo22so800597pjb.4 for ; Thu, 02 Mar 2023 15:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677801423; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=onCOeVkg7k5TqydFLa5nDrNcstnP4ns7PKnWeu+ScIU=; b=kfLHOwFI5XoAzSJeuZd4/gfedECD0/k7kOu4E3jEK8+EQs+aLXamzVEwwKtyT7U0bd KHqEPg+KIy6OzfxJS5LoVDNcrq9E7sVv7hUGEL6SS6oiuVZvZOYjuKnjMf6MlmXn80nm qpPTnesBDkE1wDnoKAzbcP3OgqKxGRxTgP5uyA1MgIxS8rrYC0nBoz1uWyk7ufnnGG78 CqDmRsVa8j8ELxR4GrGvUCX0Ug/5Pz05Vo7yc2aBEg4maQIgEpM2e9GezJTsancv+CrE WdTspzAr3iEM7Q5XvQWcCiWQSL7fR86DZ8u0h82+Mf+UJpkNQ/m6K0MfDWb2jzbdmmeW ZUnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677801423; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=onCOeVkg7k5TqydFLa5nDrNcstnP4ns7PKnWeu+ScIU=; b=T3fsn8P6wQChvCIYsbAMBu3QEIE0EkJbqEXvs/9btVm0w6TIc/BvGYCpRHr+xpxS71 xr8eC07uOwqc9l/zGZv9UsqfE/U1chdtAtWHyxayXx0Wj8qX7T29w70zqiElMGphyryW m8ifCTQxuiWy3iQ/XnY53O/bBXDRVnHUbb0oY63NRg1zWePPI/6JiTM1o4ll2GmYmGb6 4rXNQuG0bLc9UXo+mFQqSBTXPBWKx9sLzfr8gEnigkibzIZe3n7cOxVMScmvnLOdLqK1 etGxNiX3QwrcFWa1HhKip/4GN6FpFV1ENcRt9iNV+mwfClhgPtR+UXokX9Yl2zrmSeps cyAQ== X-Gm-Message-State: AO0yUKVxwmBYocZK/IVsyfwfGGYjzEezwoAG07Se1/s5jJTY8uNFIejq Mas2/B7quw2R5fvLQNGQIek= X-Google-Smtp-Source: AK7set/tYNvBaq3rNWC2iYtCvfB+fvWlUJcKG+Q9J6jp739oWworFK+nv8U6GLLU+2IreMG4HWrcWg== X-Received: by 2002:a17:90b:1e02:b0:236:76bc:5081 with SMTP id pg2-20020a17090b1e0200b0023676bc5081mr13042512pjb.1.1677801423092; Thu, 02 Mar 2023 15:57:03 -0800 (PST) Received: from ?IPV6:2603:800c:2007:a2ad::11f1? (2603-800c-2007-a2ad-0000-0000-0000-11f1.res6.spectrum.com. [2603:800c:2007:a2ad::11f1]) by smtp.gmail.com with ESMTPSA id lt15-20020a17090b354f00b0023377b98c7csm286792pjb.38.2023.03.02.15.57.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Mar 2023 15:57:02 -0800 (PST) Message-ID: <4edce834-4051-e364-d354-eb81cc7cf8f0@gmail.com> Date: Thu, 2 Mar 2023 16:57:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Using __gnu_lto_slim to detect -fno-fat-lto-objects To: Florian Weimer , gcc@gcc.gnu.org References: <87a616un8q.fsf@oldenburg.str.redhat.com> Content-Language: en-US From: Jeff Law In-Reply-To: <87a616un8q.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/22/23 01:18, Florian Weimer via Gcc wrote: > Can we use the COMMON symbol __gnu_lto_slim to detect > -fno-fat-lto-objects on contemporary GNU/Linux (with the LTO linker > plugin)? > > We currently build the distribution with -ffat-lto-objects, and I want > to switch away from that. Packages will need to opt in to > -ffat-lto-objects if static objects they build escape the buildroot. > And to make sure that this opt-in happens, I want to fail the build if > there would be any -fno-fat-lto-objects objects leaking. Thanks for taking care of this. It's one of the things I wish I'd had time to fix before leaving Red Hat. We burn a fair amount of builder time due to this issue right now. jeff