From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic312-26.consmr.mail.ir2.yahoo.com (sonic312-26.consmr.mail.ir2.yahoo.com [77.238.178.97]) by sourceware.org (Postfix) with ESMTPS id 3B96A3858D39 for ; Tue, 1 Mar 2022 20:50:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B96A3858D39 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646167821; bh=c37HzEf60OC7ULBrgBvW7GzstBLVw1mZpp6byPxLXTy=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=MFt9LQStlJFb4PqDmbYD+6N1kOqsCbqvnozK2zBvvG1MDvar2hN5VDNxyEATKROHv5v4CsWtutqUghc/r+oTpgvl32R7Mh0BgX44fX1SAe0h/5m6sK4CNyHbEqrBFf1CebxAe+Mv/w4KWeZeJW3nEm9P4h76UyqY3HIhDhUwtftZpFeywp2diCTU2MG3dZ0LTSg9kt+lLxS2nGNKGcWqy5zd1PBsrWLbDpLLY/tnKr3selKjrSMw2ZA04+aLlyZ9q9DAFYOL8dSQyR2I6VYYx0CR5qdke3n2gvYTt8WzFWayiynJVf9iBPIAclcODCaoN3GGxsRsutDhl4FuqCauYQ== X-YMail-OSG: wQm945IVM1nniR1L_2FPQWPSV.DUpgoaI7hDzmUtxlldROBI3RiyuQgqH6OgArq hZQFgnJXY7GH.u4zGvH_khbQZjKeP794ci2HnSC1qyzvLgQre2QOK_gKUtyEL9ZeCqwk4MbkCIGm DUTR3GuENGgaC7dFzZOeHiIu9SRB4.BEJSZG_BSi2nS0vgCwvaY1INIoFxeK7wkbUo35XiQjLy89 _6VkggA3tM4TQhKBFlvzJfhrDUu4WB1eE4MhyPrDuZN8QyYyuIzsv2Rurz_8qCZ.EQdBQd13YTie IdJaTHj9c3POWatRH33WAGJixqqwxKsBmjrlcskEdGSSWp9rnuf2Cz_7AXVjJjV8GH3AF6CjQ1x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zpyB_toXoN3ufb5H1sEkX3WDrsbEqFpnHrXweR8zK.2YI.vG8UqTiSki 3S0nFGtfLs.Szn0hXVs_wM45hWfbUZhLgySs5K14pUEGgI9dVys2hzitdZfT5syCgsrT3VJuTxma V_4iIBKfho5jztVDFXpqHY8BP5hMFAXzfcs0oIQvDUhDRO8E2XQRbT.Lce6P2JPv4fnq93aUQ8ok 9XKKujXc_nCBFbHf5yqxldM_F21J66Gg7oSHDpwJZ456kYLTOjrfRkQd2MZvZmAi9Ak.q_tCiJJI .G2GHoWpcQKA4Ysb68RkjcFAvOg_xViubHRgPCRdRrgc7zIxFXke.QXpWRieJlyoxKnRvqtTRuQz 01E_S19B0IVhJgLmzdt6sSmmoUUUfndxTmwjp0MKfGzB93qyn51FZuDpxY.j0KIFpEjh606ecXt3 PWTfeMTalcN4r__0T6gNzUjRT_HCfQTs9JAvbiSKVddaKLLbqr7P67XUlTvhC87klJluPdXqHMSy LZyVeE12366gwQvgucuH5i0w6RCVpM.JN5Jamu6LatfLLIiPPAEKCPw.UVXSEbr3JOGV6Tjt7Uqf hh_8ORNkNAdNh9StPCEFlpOtKgMh_ie2ZtbnuUfM79AHOLE6JeBYV.3uAVW3nufOtJZQMuAPSig1 2pBfp3HiFn5v8QBOo.Fw1nZR8r9NbaMmsYr00ANWRsnBs8RMSAzqTJwED4iRJyPUuL8SmQWx1JPF CwK1kqgsy1PTYYht0wJD0JZVsxKr8JNpzuFIHw1Y038zX7gW8JnFhBOLVA9mrgspbNbvOG1I2PPV ClkWCRSNb_bTR3lri8pZ1y8RqeJEsE_I- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Tue, 1 Mar 2022 20:50:21 +0000 Date: Tue, 1 Mar 2022 20:50:10 +0000 (UTC) From: Hannes Domani To: "binutils@sourceware.org" , Hans L Message-ID: <2056853532.5544208.1646167811007@mail.yahoo.com> In-Reply-To: References: Subject: Re: Possible to compress debug symbols in a PE exe? (ld final link failed: bad value) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.19797 YMailNorrin X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Tue, 01 Mar 2022 20:50:27 -0000 Am Dienstag, 1. M=C3=A4rz 2022, 21:17:57 MEZ hat Hans L via Binutils Folgendes geschrieben: > I am cross compiling an application from Linux to Windows, where the buil= d > uses MXE ( https://mxe.cc/ ) to bootstrap the GCC / Mingw-w64 based > cross-toolchain, as well as build various library dependencies which get > statically linked with the final executable. > > The application builds successfully under normal conditions, but debug > builds are much larger than I would like them to be.=C2=A0 (About 1GB in = size, > as opposed to 44MB without debug) > So I wanted to see if compression could help get the filesize down to > something more reasonable by adding gcc flag "-gz" in my CMakeLists.txt > > This results in the build failing on the final step with the message: >=C2=A0=C2=A0 /mxe/usr/bin/x86_64-w64-mingw32.static.posix-ld: final link f= ailed: bad > value > > What is the meaning of this supremely unhelpful error message? > Is there something about PE format that is not capable of supporting > compressed DWARF symbols? > Have I run into a possible bug in ld? > Or something else entirely is going on? (random guess: must the staticall= y > linked libraries themselves be built with the same "-gz" flag ?) I'm not sure why compression while linking isn't working for PE files, but I am able to compress the final executable with `objcopy --compress-debug-sections SOME.EXE`, maybe you can use this as wel= l. Regards Hannes