]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* as.c (std_longopts): Duplicate --keep-locals entry in order to
authorDaniel Jacobowitz <drow@false.org>
Fri, 20 Dec 2002 20:12:10 +0000 (20:12 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 20 Dec 2002 20:12:10 +0000 (20:12 +0000)
prevent it being confused with -k.

* emultempl/pe.em (longopts): Duplicate entry for --compact-implib
so that it is not confused with -c.

gas/ChangeLog
gas/as.c
ld/ChangeLog
ld/emultempl/pe.em

index c26394d071647a4e2272119a31afaa6dbf775bba..181fd99a76b55b116453f2a75c563bc77697e739 100644 (file)
@@ -3,6 +3,11 @@
        * doc/as.texinfo (Invoking): Typo fix.
        * config/tc-tic54x.c (encode_operand): Comment typo fix.
 
+2002-12-17  Nick Clifton  <nickc@redhat.com>
+
+       * as.c (std_longopts): Duplicate --keep-locals entry in order to
+       prevent it being confused with -k.
+
 2002-11-30  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
index 346ecc84c03749e1e1a8bc67b5fd1fdaae658820..f0a89c5ed1ff99edb0a4240df6040eab41389ac7 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -374,6 +374,10 @@ parse_args (pargc, pargv)
   static const struct option std_longopts[] = {
 #define OPTION_HELP (OPTION_STD_BASE)
     {"help", no_argument, NULL, OPTION_HELP},
+    /* getopt allows abbreviations, so we do this to stop it from
+       treating -k as an abbreviation for --keep-locals.  Some
+       ports use -k to enable PIC assembly.  */
+    {"keep-locals", no_argument, NULL, 'L'},
     {"keep-locals", no_argument, NULL, 'L'},
     {"mri", no_argument, NULL, 'M'},
 #define OPTION_NOCPP (OPTION_STD_BASE + 1)
index 86ca4821470e11674bafe624ba8c0aa3befe7bf4..d25783005ad77117e79e9dc17363c5125ed8d867 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-17  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
+       so that it is not confused with -c.
+
 2002-12-10  Alan Modra  <amodra@bigpond.net.au>
 
        * emultempl/elf32.em (struct orphan_save): Add os_tail field.
index 474b98454878fd4e337ef55ed3f8583702f60007..ec1514fba2ae6c8ef27f6f0024f44a826a3b25df 100644 (file)
@@ -255,6 +255,9 @@ static struct option longopts[] = {
   {"disable-stdcall-fixup", no_argument, NULL, OPTION_DISABLE_STDCALL_FIXUP},
   {"out-implib", required_argument, NULL, OPTION_IMPLIB_FILENAME},
   {"warn-duplicate-exports", no_argument, NULL, OPTION_WARN_DUPLICATE_EXPORTS},
+  /* getopt() allows abbreviations, so we do this to stop it from
+     treating -c as an abbreviation for these --compat-implib.  */
+  {"compat-implib", no_argument, NULL, OPTION_IMP_COMPAT},
   {"compat-implib", no_argument, NULL, OPTION_IMP_COMPAT},
   {"enable-auto-image-base", no_argument, NULL, OPTION_ENABLE_AUTO_IMAGE_BASE},
   {"disable-auto-image-base", no_argument, NULL, OPTION_DISABLE_AUTO_IMAGE_BASE},