Bug 25979 - Report default hash-style on --help
Summary: Report default hash-style on --help
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.35
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 18:46 UTC by dilyan.palauzov@aegee.org
Modified: 2020-05-13 10:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dilyan.palauzov@aegee.org 2020-05-12 18:46:42 UTC
ld.bfd 2.34.50.20200506 --help prints:

  --hash-style=STYLE          Set hash style to sysv, gnu or both

It shall print which hash style is the default (will be used, if --hash-style is not passed)
Comment 1 Sourceware Commits 2020-05-13 09:59:44 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ba311c5b10ea387d68c63bf61de0885aa150cd69

commit ba311c5b10ea387d68c63bf61de0885aa150cd69
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed May 13 10:59:02 2020 +0100

    Have the linker's help text include the default setting of the --hash-style option, if relevent.
    
            PR 25979
            * lexsup.c (elf_shlib_list_options): Include the default value for
            the hash style in the output text.
Comment 2 Nick Clifton 2020-05-13 10:00:33 UTC
Ok, patch applied.