]> Git Repo - binutils.git/blobdiff - ld/ldmain.c
* lexsup.c (parse_args): Changed "retain-symbols-file" from
[binutils.git] / ld / ldmain.c
index bfe74f049f1b15e73eee3575d77b447813a4d32b..7ee24f366b1ee525f9207e06bb07f64b3aa28c88 100644 (file)
@@ -162,9 +162,11 @@ main (argc, argv)
   config.build_constructors = true;
   config.dynamic_link = false;
   command_line.force_common_definition = false;
+  command_line.interpreter = NULL;
 
   link_info.callbacks = &link_callbacks;
   link_info.relocateable = false;
+  link_info.shared = false;
   link_info.strip = strip_none;
   link_info.discard = discard_none;
   link_info.lprefix_len = 1;
@@ -200,6 +202,8 @@ main (argc, argv)
        einfo ("%P%F: -r and -call_shared may not be used together\n");
       if (link_info.strip == strip_all)
        einfo ("%P%F: -r and -s may not be used together\n");
+      if (link_info.shared)
+       einfo ("%P%F: -r and -shared may not be used together\n");
     }
 
   /* This essentially adds another -L directory so this must be done after
@@ -366,6 +370,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 */
This page took 0.020841 seconds and 4 git commands to generate.