From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 2B2D33850407 for ; Thu, 4 Mar 2021 04:47:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2B2D33850407 Received: by mail-pg1-x532.google.com with SMTP id l2so18116135pgb.1 for ; Wed, 03 Mar 2021 20:47:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=URKLXJx+wATSBPnXVgmDwcg+6oTNlAamlnTTiC0Ujyo=; b=BtXVp935wohD04DVBKKG3xiH+2uMm/3tCaWiHBcif+wOPYbvQ/hSCPhfVswBglsvGm JRSZ9qiHEFbOWcuRXVys+MRhCj1maqoiEXlf5AnmmJuNIiHs+C7JbcUCA/3wmpRyiih0 EBoGKneBRITTu/vSfiP2LkSCp9VhhYQh6HY4w9XT5v2lox7LJ/0Q2NViFc1ICVntplc1 0zNUnIvqLwBykdJRi9zxjx4cDyI0dmwir0JYVdxU1nwVsR/F0yF1Ud9Ejd5YgJxIYjzH Ezrp6dUZxUfUKDxbtF/VK6S0lqTbsimTHOFhOJBOd3JX7IhNW9TDz2Yooy3JsFaLfF6P Gl9g== X-Gm-Message-State: AOAM530YDvj2rl+Vb6WBB+VIldYtIkTScNkdNSzhxPbRdA3SxojeR5ou 1OAiQvcvDxVMojuDAhBLn4F9rpcYPU679Q== X-Google-Smtp-Source: ABdhPJzT/0B/HWhc3nOxLPD2cfk1hm4+O9C6oeC+1REr3CY7amUHNff4RTizlG+NEt399VTKNROCGw== X-Received: by 2002:a65:6290:: with SMTP id f16mr2134235pgv.69.1614833252011; Wed, 03 Mar 2021 20:47:32 -0800 (PST) Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:1173:7b53:14ee:6c5e]) by smtp.gmail.com with ESMTPSA id 67sm27015858pfw.92.2021.03.03.20.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 20:47:31 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id C831B41DA5; Thu, 4 Mar 2021 15:17:27 +1030 (ACDT) Date: Thu, 4 Mar 2021 15:17:27 +1030 From: Alan Modra To: Jan Beulich Cc: Binutils Subject: Re: [PATCH 2/6] bfd: prune COFF/PE section flags setting Message-ID: <20210304044727.GQ6042@bubble.grove.modra.org> References: <67c184ec-e370-46ee-46d3-bd001ef80445@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-3032.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 04:47:34 -0000 On Tue, Mar 02, 2021 at 10:47:44AM +0100, Jan Beulich via Binutils wrote: > It is my understanding that IMAGE_SCN_LNK_* are supposed to communicate > information to the (static) linker, and become at best meaningless in PE > images. I wouldn't call loaders wrong which would refuse to process > sections with any of these bits set. While there's no replacement for > IMAGE_SCN_LNK_COMDAT, use IMAGE_SCN_MEM_DISCARDABLE in place of > IMAGE_SCN_LNK_REMOVE in this case. > > bfd/ > 2021-02-XX Jan Beulich > > * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in > final PE images. OK. -- Alan Modra Australia Development Lab, IBM