[PATCH] Add configure flag to enable gnu hash style by default.

Matthias Klose doko@ubuntu.com
Tue Jul 18 22:51:00 GMT 2017


On 13.07.2017 13:06, Michael Matz wrote:
> Hi,
> 
> On Wed, 12 Jul 2017, Romain Geissler wrote:
> 
>> This small patch adds a new --with-default-hash-style={sysv|gnu|both} 
>> configure option and switches the default hash-style to "gnu" rather 
>> than "sysv" for the ELF linker. glibc has support for GNU hash style for 
>> a long time.
> 
> While that is true I don't think binutils should emit ELF files that 
> aren't compliant with the ELF ABI by default.  So if anything the default 
> should be 'both'.

The last Debian release shipped with a binutils with hash-style set to gnu, and
the two previous ones with a binutils with hash-style set to both.  Until now I
didn't get any complaints about the current gnu setting.

Matthias



More information about the Binutils mailing list