ld default hash style
Michael Matz
matz@suse.de
Tue Apr 1 12:57:19 GMT 2025
Hello,
On Tue, 1 Apr 2025, Xi Ruoyao wrote:
> > I started to get reports recently that they just crash and don't load at
> > all. The bug was that the ancient loader didn't understand the GNU hash
> > style and somehow these users were not getting the old-style hashes.
> > Forcing hash-style=sysv on the commandline gets it to work again.
> >
> > Did the default change recently? If not, what could have caused the
> > change?
>
> It's configurable when binutils is built, using the --enable-default-
> hash-style=gnu option. This option isn't the default, thus you need to
> ask your distro if it has recently added the option.
>
> But FWIW most major distros have added this for decades, not recently.
Some use(d) =both, to get speed _and_ compatibility. And some of those
may have decided only recently to ditch compatiblity (not ours! ;) ).
Ciao,
Michael.
More information about the Binutils
mailing list