aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2018-01-15 10:05:54 -0800
committerCary Coutant <ccoutant@gmail.com>2018-01-15 10:07:11 -0800
commit930b5f8bfb8e2d971f459c570d248714183a08d5 (patch)
tree44d8678a86c923470eff59da152a1b8161946728 /gold/options.h
parentcf3cf39d53c3fc6b9cf27d97deb6ffecf0a7f6e7 (diff)
downloadfsf-binutils-gdb-930b5f8bfb8e2d971f459c570d248714183a08d5.zip
fsf-binutils-gdb-930b5f8bfb8e2d971f459c570d248714183a08d5.tar.gz
fsf-binutils-gdb-930b5f8bfb8e2d971f459c570d248714183a08d5.tar.bz2
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.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index d5b8fe4..feb60cc 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -894,7 +894,7 @@ class General_options
DEFINE_string(fuse_ld, options::ONE_DASH, '\0', "",
N_("Ignored for GCC linker option compatibility"),
- NULL);
+ N_("[gold,bfd]"));
// g