+2003-04-05 Dimitrie O. Paun <dpaun@rogers.com>
+
+ * windres.c: Add -l for compatibility with wrc, and rc.
+ Use the short option as a key for long options that have
+ a synonymous short option.
+ * doc/binutils.texi: Added -l to the list of options.
+
2003-04-03 Dimitrie O. Paun <dpaun@rogers.com>
- * windres.c: Add -U for compatibility with wrc, rc, and cpp.
- (main): Just pass the -U option down to the preprocessor.
- * doc/binutils.texi: Added -U to the list of options.
+ * windres.c: Add -U for compatibility with wrc, rc, and cpp.
+ (main): Just pass the -U option down to the preprocessor.
+ * doc/binutils.texi: Added -U to the list of options.
2003-04-01 Dimitrie O. Paun <dpaun@rogers.com>
2003-04-01 Bob Wilson <bob.wilson@acm.org>
- * readelf.c: Include "elf/xtensa.h".
- (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
- targets that use RELA relocations.
- (dump_relocations): Call elf_xtensa_reloc_type for
- EM_XTENSA and EM_XTENSA_OLD.
- (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
+ * readelf.c: Include "elf/xtensa.h".
+ (guess_is_rela): Add EM_XTENSA and EM_XTENSA_OLD to list of
+ targets that use RELA relocations.
+ (dump_relocations): Call elf_xtensa_reloc_type for
+ EM_XTENSA and EM_XTENSA_OLD.
+ (get_machine_name): Handle EM_XTENSA and EM_XTENSA_OLD.
2003-04-01 Nick Clifton <nickc@redhat.com>
/* 150 isn't special; it's just an arbitrary non-ASCII char value. */
-#define OPTION_HELP 150
-#define OPTION_INCLUDE_DIR (OPTION_HELP + 1)
-#define OPTION_LANGUAGE (OPTION_INCLUDE_DIR + 1)
-#define OPTION_PREPROCESSOR (OPTION_LANGUAGE + 1)
+#define OPTION_INCLUDE_DIR 150
+#define OPTION_PREPROCESSOR (OPTION_INCLUDE_DIR + 1)
#define OPTION_USE_TEMP_FILE (OPTION_PREPROCESSOR + 1)
#define OPTION_NO_USE_TEMP_FILE (OPTION_USE_TEMP_FILE + 1)
-#define OPTION_VERSION (OPTION_NO_USE_TEMP_FILE + 1)
-#define OPTION_YYDEBUG (OPTION_VERSION + 1)
+#define OPTION_YYDEBUG (OPTION_NO_USE_TEMP_FILE + 1)
static const struct option long_options[] =
{
{"define", required_argument, 0, 'D'},
- {"help", no_argument, 0, OPTION_HELP},
+ {"help", no_argument, 0, 'h'},
{"include-dir", required_argument, 0, OPTION_INCLUDE_DIR},
{"input-format", required_argument, 0, 'I'},
- {"language", required_argument, 0, OPTION_LANGUAGE},
+ {"language", required_argument, 0, 'l'},
{"output-format", required_argument, 0, 'O'},
{"preprocessor", required_argument, 0, OPTION_PREPROCESSOR},
{"target", required_argument, 0, 'F'},
{"use-temp-file", no_argument, 0, OPTION_USE_TEMP_FILE},
{"no-use-temp-file", no_argument, 0, OPTION_NO_USE_TEMP_FILE},
{"verbose", no_argument, 0, 'v'},
- {"version", no_argument, 0, OPTION_VERSION},
+ {"version", no_argument, 0, 'V'},
{"yydebug", no_argument, 0, OPTION_YYDEBUG},
{0, no_argument, 0, 0}
};
language = 0x409; /* LANG_ENGLISH, SUBLANG_ENGLISH_US. */
use_temp_file = 0;
- while ((c = getopt_long (argc, argv, "i:o:I:O:F:D:U:rhHvV", long_options,
+ while ((c = getopt_long (argc, argv, "i:l:o:I:O:F:D:U:rhHvV", long_options,
(int *) 0)) != EOF)
{
switch (c)
break;
- case OPTION_LANGUAGE:
+ case 'l':
language = strtol (optarg, (char **) NULL, 16);
break;
case 'h':
case 'H':
- case OPTION_HELP:
usage (stdout, 0);
break;
case 'V':
- case OPTION_VERSION:
print_version ("windres");
break;