From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mr3.vodafonemail.de (mr3.vodafonemail.de [145.253.228.163]) by sourceware.org (Postfix) with ESMTPS id 91CC53858D1E for ; Sun, 13 Feb 2022 20:17:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 91CC53858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nexgo.de Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4JxdvG3g3wz1ycN for ; Sun, 13 Feb 2022 20:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1644783466; bh=S6LyCCwp3GrG5nNX1yQ/qAAJGHKn19TSFZyvBoYXHrY=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=TGYurBmAMR32Y7S8Kc6q5AG5Nx2/uiydatuwVo1yA/oVqo75tlZGrRdyp/tT3lWaP OQfkovt9cbv3Y9UixFdd2brRgGzBJyfxEGKGJuxSQ3Roe+PJNRkoieKOMRv91nstbL y4aU5gLeb3yNrIRcENsSotIznpn843pelgUDu3j8= Received: from Gertrud (p5b2f3a9b.dip0.t-ipconnect.de [91.47.58.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4JxdvF3rCjz9s0Q for ; Sun, 13 Feb 2022 20:17:42 +0000 (UTC) From: Achim Gratz To: binutils@sourceware.org Subject: Re: [Bug] DWARF-5 section names in PE/PEP and weak symbols References: <878rwvrlz9.fsf@Rainer.invalid> Date: Sun, 13 Feb 2022 21:17:38 +0100 In-Reply-To: (Nick Clifton via Binutils's message of "Wed, 15 Dec 2021 13:12:32 +0000") Message-ID: <87mtiumsgt.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1197 X-purgate-ID: 155817::1644783465-00000456-C1E167D9/0/0 X-Spam-Status: No, score=-3029.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Sun, 13 Feb 2022 20:17:49 -0000 Nick Clifton via Binutils writes: > So you are saying that because the linker script now includes specific > references to DWARF-5 debug sections, the fputs symbol is being pulled > in to the link from the cygwin1.dll and hence it is no longer undefined ? > That seems to be most strange. Looking further into this I'm beginning to think that the previous behaviour was a bug that has since been fixed (and that probably has nothing to do with the DWARF5 sections other than this change for some reason interacted with the pre-existing bug to trip up a poorly written autoconf test in gnulib). In fact it appears that with 2.38 weak symbols are in fact working correctly for the handful examples that I've come up with. I'll have to go back to the original example that produced buggy behaviour (grep-3.7 w/o patched gnulib threadlib.m4) and see if that's now working as well (it may not, since the libraries have all been produced by earlier ld, but it seems worth trying). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada