Binutils causes abnormally large, non-working binaries since 2.43
Bastiaan Timmer
basjetimmer@yahoo.com
Sun Feb 16 16:57:31 GMT 2025
Hi!
I was contemplating posting this to the bug-binutils, but given my
complete lack of knowledge on what I'm experiencing I thought it safer
to post here.
A few days ago, an update to the Arch (AUR) package mingw-w64-openssl
became available. After building it, it resulted in an abnormally large
static library (libcrypto.dll.a). A program I regularly link against
this also suddenly ballooned in size (from 9,9MB to around 25MB), and -
more importantly - does not run anymore.
After a thorough investigation into the source of the trouble, I found
it seems mingw-w64-binutils is the culprit. When building and installing
2.42, everything is back to normal. building the mingw-w64-openssl
package results in:
[~] $ ls -lh /usr/x86_64-w64-mingw32/lib/libcrypto.dll.a
-rwxr-xr-x 1 root root 3,7M feb 16 15:06
/usr/x86_64-w64-mingw32/lib/libcrypto.dll.a
And any programs using this library run as expected. After updating to
mingw-w64-binutils 2.43, building the exact same openssl package in the
exact same way results in:
[~] $ ls -lh /usr/x86_64-w64-mingw32/lib/libcrypto.dll.a
-rwxr-xr-x 1 root root 114,4M feb 16 15:59
/usr/x86_64-w64-mingw32/lib/libcrypto.dll.a
Note the very large size. Also, it is non-functional.
I realize compiling openssl is not exactly a minimal example, and I have
no clue what part of binutils is actually at fault here. Given that it's
a mingw-package, I'm not even sure this is the right mailing list
(though the PKGBUILD does point here as its source). But I am hoping
someone has a clue what could be going on just from these symptoms, or
can try to explain to me how to get more useful information about this
problem.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250216/8277e3f3/attachment.htm>
More information about the Binutils
mailing list