* ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
authorIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 21:04:21 +0000 (21:04 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 21:04:21 +0000 (21:04 +0000)
* lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.

ld/ChangeLog
ld/ldmain.c
ld/lexsup.c

index 928908b393f11f6c747fa680ac8331061e0b33db..f3f5d6eee38cd590c40381091e9d60f43789d474 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jun 15 01:54:54 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
+       * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
+
        Let the user change the dynamic linker used by ELF code.
        * ld.h (args_type): Add new field interpreter.
        * lexsup.c (parse_args): Add dynamic-linker to longopts, and
index 82b5a401c92466b68fd1640f93a6ac1af1261115..5b2e370f8a5bf9b9a366801cdd15150b9564a549 100644 (file)
@@ -367,6 +367,12 @@ get_emulation (argc, argv)
                 the arguments and hope that nobody ever creates
                 emulations named ips1, ips2 or ips3.  */
            }
+         else if (strcmp (argv[i], "-m486") == 0)
+           {
+             /* FIXME: The argument -m486 is passed to the linker on
+                some Linux systems.  Hope that nobody creates an
+                emulation named 486.  */
+           }
          else
            {
              /* -mEMUL */
index 0b52a1116c0634ddbcac79e4c36d0286620dbdca..a4c847f1ad2b3027f6525cd553fff1b0671b3af2 100644 (file)
@@ -98,6 +98,7 @@ parse_args (argc, argv)
     {"non_shared", no_argument, NULL, OPTION_NON_SHARED},
     {"oformat", required_argument, NULL, OPTION_OFORMAT},
     {"Qy", no_argument, NULL, OPTION_IGNORE},
+    {"qmagic", no_argument, NULL, OPTION_IGNORE}, /* Linux compatibility.  */
     {"relax", no_argument, NULL, OPTION_RELAX},
     {"retain-symbols-file", no_argument, NULL, OPTION_RETAIN_SYMBOLS_FILE},
     {"sort-common", no_argument, NULL, OPTION_SORT_COMMON},