From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by sourceware.org (Postfix) with ESMTPS id 1E0293858433 for ; Mon, 15 May 2023 11:27:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E0293858433 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-oa1-x36.google.com with SMTP id 586e51a60fabf-190d4f2f943so9929747fac.3 for ; Mon, 15 May 2023 04:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684150071; x=1686742071; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=vkmJvHAOfvlOCTv/YIMfcfpROhw8iaWyVRmsAl2/jJw=; b=EzmjK4m4wmjH1MWsj2bWoZgbpgdnrKqgWlQLF0xUqPjRsHH6Z6vhnFLnkkJmjD4sl+ HLSqyuEFhxYaNbtqAgY4RKfnUmPAduAJ32spZAqVtFzxv6H8OK4n1bhoFM/h+Y+dp+oO YgbuB7dwMcp59nkeuXn27iuEh9ZeAJNIeKEvcAljUNEfj1he4sPjVKFBZcVv8/OBlGPo /LUtsc3xozF5aIUv3ESKa26+SITl4EMD3/dnVY7IG7YfT7eMM7vJ+xZBxeLgb5B+L/Wt q835DIT6njMchmxDYnm54wkP4fODV8QeFF9eqjCgHF2e4lIRXlCwFJdjlXOdy5jn0EWT 5rxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684150071; x=1686742071; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vkmJvHAOfvlOCTv/YIMfcfpROhw8iaWyVRmsAl2/jJw=; b=gcEQjDano9kYn9g/U+jGcb9DAhhWLt20U6Oq0+9+356C2WSs4Hc30FZOGzUbFJEPTn 0JI8pDxPmVmdVSMqVFlpa8CoTWu/UuuVNSDHyQp7p99u/yf3uwdQdh4DshH4d08rp/c1 lvInRXJO6kO0+O8p/WzNdg5HhtMlwpEYXHoQAYYh0W8YiWMjhSImf7SUw2qNEj+ouZQG Q6p84z/cT6s13kjQ69f/UERadna6s5WNOWHffhTptZkSzrYIDpSC3703PleQt9v37t7v qCmvBVr73PF3o5ka3o1kdKNqCNuFDbkx7NRAbx4crIvNLf+pmSJFaSs7EMkX6ubLkC8q TwWQ== X-Gm-Message-State: AC+VfDy+xeBr1XdH0ANvwGnmVNBsII+NyAGYf2Z2638dqfOfNztTQmfx Q5WiCWOFl4q0u5KXpIW0To1U7kzIcCwZEIvOKB/k2vcDPek= X-Google-Smtp-Source: ACHHUZ7s6JN4JaiDGfoC7Y4tGBpmMO4o1+CBGuqo7Jli6PTS1MOX9KFdjDB4Lqu4FYV6A0wpcgrwFXR6zTaMwOrgQGg= X-Received: by 2002:a05:6870:a484:b0:187:c830:92d with SMTP id j4-20020a056870a48400b00187c830092dmr13874582oal.27.1684150071205; Mon, 15 May 2023 04:27:51 -0700 (PDT) MIME-Version: 1.0 References: <831c6d67-e502-1cb2-b68c-956c354c968b@redhat.com> In-Reply-To: From: Tom Kacvinsky Date: Mon, 15 May 2023 07:27:40 -0400 Message-ID: Subject: Re: ld --base-file option, dlltool generated exp files To: Binutils Content-Type: multipart/alternative; boundary="000000000000be249705fbb9be1d" X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: --000000000000be249705fbb9be1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, May 14, 2023 at 2:44=E2=80=AFPM Tom Kacvinsky = wrote: > Hi NIck, > > On Wed, May 10, 2023 at 7:38=E2=80=AFAM Nick Clifton w= rote: > >> Hi Tom, >> >> > What I found through lots of experimentation is that either the base >> file >> > generated by ld or the exp file generated by dlltool is off and is >> making >> > a DLL that causes our applications to crash >> >> > The reason I say it's either the base file or the exp file is that I c= an >> > take my export definition file (a .def file) and generate an import >> library >> > and exp file using Microsoft's lib tool, and that exp file makes the >> final >> > link produce a DLL that does not have an issue. >> >> > I have a way around the problem without using a base file (just pass t= he >> > .def file directly to ld so that an export table is generated), but I >> > wanted to report this issue. >> >> Thank you for doing this. It always helps when problems are reported, >> even >> if we do not have a solution available. >> >> Please could you file a bug report here: >> >> https://sourceware.org/bugzilla/enter_bug.cgi?product=3Dbinutils >> >> > I haven't yet done so as I am fighting getting at least the major versions > of > binutils between which things broke. I think that would help to have in > the > bug report. > > But it appears it is going to be more involved than I thought. I thought > I was > going to get away with building all of our code with one binutils (using > the > version of binutils I know works) and then just swapping versions of > binutils > used for making the DLL until I find the version that broke. But that > process > ends up producing a DLL Windows does not like. :-(. So, I have to build > the > entire GCC + binutils toolchain, with the binutils version changing and G= CC > remaining fixed. This will take a while. > Filed bug https://sourceware.org/bugzilla/show_bug.cgi?id=3D30448 as I found the versions between which things broke. I think I even have a problematic commit. Regards, Tom --000000000000be249705fbb9be1d--