]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix -fuse-ld option to accept string argument.
authorCary Coutant <ccoutant@gmail.com>
Mon, 15 Jan 2018 18:05:54 +0000 (10:05 -0800)
committerCary Coutant <ccoutant@gmail.com>
Tue, 16 Jan 2018 17:06:12 +0000 (09:06 -0800)
commit75400e01f206ad383ab15a40e13086c2f9cc795b
tree7df9cadaab20e8c6dce4a6211de3af7cdefeb6cb
parent0830ca49351045c9cf0c4fc90c53fa48d0e85196
Fix -fuse-ld option to accept string argument.

PR 22042 complained that garbage text was being printed in the help
for the -fuse-ld option; this was caused by passing an empty string
to the gettext() function, which sometimes returns garbage when passed
an empty string. The quick fix was to replace "" with NULL as the helparg,
but that changed the parsing of the option, as gold uses the helparg to
determine whether an option takes an argument. This patch adds a
non-empty helparg string to fix both problems.

gold/
PR gold/22694
* options.h (-fuse-ld): Add correct helparg.
gold/ChangeLog
gold/options.h