aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 16:40:09 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 16:40:09 +0000
commitd98dd8ba260573f0cfdfccfe0990bca17be2c4f3 (patch)
tree026718d04edcf5014d04ab9c90c9d7f850ec1698 /ld/lexsup.c
parent03983865c36b444f34deb9c651537a9ddb59ed8b (diff)
downloadgdb-d98dd8ba260573f0cfdfccfe0990bca17be2c4f3.zip
gdb-d98dd8ba260573f0cfdfccfe0990bca17be2c4f3.tar.gz
gdb-d98dd8ba260573f0cfdfccfe0990bca17be2c4f3.tar.bz2
1999-09-12 Donn Terry <donn@interix.com>
* lexsup.c (parse_args): Use strtoul for --split-by-reloc argument.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 273baba..06a65e1 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;