import gdb-2000-02-02 snapshot
[external/binutils.git] / ld / lexsup.c
index f8388ac..06a65e1 100644 (file)
@@ -516,6 +516,9 @@ parse_args (argc, argv)
       switch (optc)
        {
        default:
+         fprintf (stderr,
+                  _("%s: use the --help option for usage information\n"),
+                  program_name);
          xexit (1);
        case 1:                 /* File name.  */
          lang_add_input_file (optarg, lang_input_file_is_file_enum,
@@ -951,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;