--- nm.c~ 2002-08-27 04:42:56.000000000 +0530 +++ nm.c 2002-11-25 09:36:46.000000000 +0530 @@ -241,13 +241,17 @@ static void usage (stream, status) FILE *stream; int status; { fprintf (stream, _("Usage: %s [option(s)] [file(s)]\n"), program_name); +#ifdef __CYGWIN__ + fprintf (stream, _(" List symbols in [file(s)] (a.exe by default).\n")); +#else fprintf (stream, _(" List symbols in [file(s)] (a.out by default).\n")); +#endif fprintf (stream, _(" The options are:\n\ -a, --debug-syms Display debugger-only symbols\n\ -A, --print-file-name Print name of the input file before every symbol\n\ -B Same as --format=bsd\n\ -C, --demangle[=STYLE] Decode low-level symbol names into user-level names\n\ The STYLE, if specified, can be `auto' (the default),\n\ @@ -469,14 +473,18 @@ } if (show_version) print_version ("nm"); /* OK, all options now parsed. If no filename specified, do a.out. */ - if (optind == argc) - return !display_file ("a.out"); + if (optind == argc) +#ifdef __CYGWIN__ + return !display_file ("a.exe"); +#else + return !display_file ("a.out"); +#endif retval = 0; if (argc - optind > 1) filename_per_file = 1;