From d98dd8ba260573f0cfdfccfe0990bca17be2c4f3 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 12 Sep 1999 16:40:09 +0000 Subject: [PATCH] 1999-09-12 Donn Terry * lexsup.c (parse_args): Use strtoul for --split-by-reloc argument. --- ld/ChangeLog | 3 +++ ld/lexsup.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 782029238b9..1215b63d5ea 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -23,6 +23,9 @@ 1999-09-12 Donn Terry + * lexsup.c (parse_args): Use strtoul for --split-by-reloc + argument. + * lexsup.c (parse_args): If we get an unrecognized argument, mention --help. diff --git a/ld/lexsup.c b/ld/lexsup.c index 273babac78a..06a65e13bd0 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -954,7 +954,7 @@ the GNU General Public License. This program has absolutely no warranty.\n")); ignored. Someday we should handle it correctly. FIXME. */ break; case OPTION_SPLIT_BY_RELOC: - config.split_by_reloc = atoi (optarg); + config.split_by_reloc = strtoul (optarg, NULL, 0); break; case OPTION_SPLIT_BY_FILE: config.split_by_file = true; -- 2.30.2