From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rusty.tulip.relay.mailchannels.net (rusty.tulip.relay.mailchannels.net [23.83.218.252]) by sourceware.org (Postfix) with ESMTPS id 7C5913858D28 for ; Thu, 21 Mar 2024 15:32:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C5913858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hcubed.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hcubed.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7C5913858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=23.83.218.252 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1711035142; cv=pass; b=t+Y82zjxsZqMZTCZstT4H+Li/ny0grFcW+9EmH0L4mv++wcV6ORJ/DrmZO5YP0H0KKMvtdoHdpfdgomZUmNTHzUy5CJhDODrNK4q/U38LERTG4ADM/EqtbfD+YTjQm1D9tpR+HwGdbGoHy2pDSluh8lQjB/lr1S/UB3fvqceilQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1711035142; c=relaxed/simple; bh=b1gG+lkJlR0TzzDb5NziUqfIqfLZnqR4Ry7eYu6eLo0=; h=DKIM-Signature:MIME-Version:Date:From:To:Subject:Message-ID; b=hR0ebVMfyfut0lrV4wLL8bVaYWM4x5MPMOCCp5jAiSlhEILfvsVfegI2Gj4777iD9dZ311dcNVyRzTOpAciE5MzKvw3CVFN0LV4SkGsLqt8DZYrMUUN2Z42csOKpB80/CvfgcOs72dzVrKhkQ4foWl5H3p0A3Ea1iAAqDCxLIjc= ARC-Authentication-Results: i=2; server2.sourceware.org X-Sender-Id: hostpapa|x-authuser|grant@hcubed.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 48FB56C2690; Thu, 21 Mar 2024 15:32:10 +0000 (UTC) Received: from s127.servername.online (unknown [127.0.0.6]) (Authenticated sender: hostpapa) by relay.mailchannels.net (Postfix) with ESMTPA id 20E716C2BD3; Thu, 21 Mar 2024 15:32:09 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1711035129; a=rsa-sha256; cv=none; b=wYBeqosWxJ2EcNXLhj8fpJgGrzVG3GBicE1/FZ7O4tRB9DqzyL9xTZDvWw6E2FJnrbBjAo nNpRsIbr9Sp/RV4Y4o63oUsAu+w+jA1bhcK/k720WxTTOrStIRAzsGqzDoVnu4x5fn68vS VEQpKal11O/tdgO+mTxejaLhbH9qHlhehfjuXugmpH0VMiIKWjmYyjw0chOt3TMbReUQez 3kO5einxCBuY67KeCdpuEeJe3jX4yBVIAuz+L+WM8n0K9a15NKRlW3BBfMDJOzJJdosV1j aXJxhIhNxalfZZb1lH/yd8DgWGfsmVJvEzPhA7palNxgHurri5LZ3wsDsN+jEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1711035129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ysf20ncPvmWowm1BizgcsBjUQrLA0QnMS9nyDwCANNg=; b=NYVVQ0adah+vHC8aQZOBb+oPt0ql0x7Zc7JEPsIoeaXAsH1IPw3U2QIZ2K5rxyIMYs7RQy yHerxJ7B26xku0TPNvezvPt89oe6+Hc3Ce+U8co00xeRbQVpiGqztmiG2YuhR21eTluCYq WmcCz+9tD55tKJeA8DMFTgL/G69RxcyAI+vVmakIOD1WUF3rkFGbLaaLv6YfyF6K6+TAfR ILmXVXX5oC0AKiA42PGItY+gNkEfYuT0Wp/vVLeAvMKBCUWs3MXX/RGUdJMp4bowSl7c4R sBapuEp3Xo99IFaGgdBBH0mWP6YpE45bfqseWcz2SK/xyve5o3Py4QyIn4moFQ== ARC-Authentication-Results: i=1; rspamd-b46fcdc5-v5kc4; auth=pass smtp.auth=hostpapa smtp.mailfrom=grant@hcubed.com X-Sender-Id: hostpapa|x-authuser|grant@hcubed.com X-MC-Relay: Neutral X-MailChannels-SenderId: hostpapa|x-authuser|grant@hcubed.com X-MailChannels-Auth-Id: hostpapa X-Battle-Reign: 1266e070290edde6_1711035129807_1873285662 X-MC-Loop-Signature: 1711035129807:334748426 X-MC-Ingress-Time: 1711035129807 Received: from s127.servername.online (s127.servername.online [204.44.192.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.121.187.15 (trex/6.9.2); Thu, 21 Mar 2024 15:32:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hcubed.com; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ysf20ncPvmWowm1BizgcsBjUQrLA0QnMS9nyDwCANNg=; b=FOLkaLv8aZ10C+1Yu8iHdB+dY0 7Z+1cGV7LCgq0qA4sKiy1//xKw406LohFKL4Ou1es/7p1J/M0RgqfNoLJ8jvjznNd9ulSRDfPoHJu td2oAcSEoi0DUxocpX4v4XDPY5yn/rcscZ9dpp9HeMhryudeqxo1n4qcYD9TVJiivX2moWfaTzIVp SUhciizsVqo7BLSEo3LDASuNDl8bEhNdbaNqRFz3XuyNKO1Q+rn71zECVwGjUiNDe5yn10QZDfrLU r5TYV1reDNB7BMNBOK7ZyHySv9YdkLHys5G6lqgpvhhUCoaJmhj56azZFXCQqAAeIapKN2eeupQNE YEMXu7Mw==; Received: from localhost ([127.0.0.1]:36192 helo=s127.servername.online) by s127.servername.online with esmtpa (Exim 4.96.2) (envelope-from ) id 1rnKOo-007MgR-3D; Thu, 21 Mar 2024 08:32:08 -0700 MIME-Version: 1.0 Date: Thu, 21 Mar 2024 08:32:08 -0700 From: grant@hcubed.com To: Nick Clifton Cc: annobin@sourceware.org Subject: Re: global-file-syms for clang In-Reply-To: References: <3672709c299b649008957acb6e9f072d@hcubed.com> User-Agent: Roundcube Webmail/1.6.0 Message-ID: X-Sender: grant@hcubed.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: grant@hcubed.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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: Nick, Thanks. As a data point, when I use the GCC toolchain, I didn't need to set the global-file-syms flag. I believe the issue is an interaction between the LLVM gold plugin and the annobin plugin and linking in LTO archives that have objects that have the same filename for the source. The LLVM gold plugin tries to bring in all the fine annobin symbols, rather than just bringing the annobin symbols from the first file that satisfies the symbols for linking. Disabling one of the above constraints (annobin plugin, LTO) causes the build to complete. I was just going to use the global-file-syms to overcome the LLVM gold plugin/LTO issue. Regards, Grant Haidinyak On 2024-03-21 01:35, Nick Clifton wrote: > Hi Grant, > >> I need to get the global-file-syms option operation on the clang >> plugin. Is this already done? > > No. :-( > >> The reason for the ask is the project I'm working on has the same >> filename used and the linker is complaining about redefinition of the >> _annobin_{filename}_start. > > Ah yes.... > > You could use gcc as a workaround. (Just being cheeky). > > I will ask one of my colleagues to have a look at the issue, since > he has been making other enhancements to the clang plugin recently. > > Cheers > Nick