ld default hash style

Tavis Ormandy taviso@gmail.com
Tue Apr 1 01:27:29 GMT 2025


Hello, I maintain a set of patches to make some old binaries work on
modern Linux. The binaries require some ancient ld.so, but it can load
files produced by modern ld, so I preload some compatability shims and
it works great.

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?

Tavis.

-- 
 _o)            $ lynx lock.cmpxchg8b.com
 /\\  _o)  _o)  $ finger taviso@sdf.org
_\_V _( ) _( )  @taviso



More information about the Binutils mailing list