]> Git Repo - binutils.git/commitdiff
* lexsup.c (parse_args): Add -shared to longopts, and handle it.
authorIan Lance Taylor <[email protected]>
Thu, 16 Jun 1994 19:32:07 +0000 (19:32 +0000)
committerIan Lance Taylor <[email protected]>
Thu, 16 Jun 1994 19:32:07 +0000 (19:32 +0000)
* ldmain.c (main): Initialize link_info.shared to false.  Give
error if link_info.relocateable and link_info.shared are both set.

ld/ChangeLog
ld/ldmain.c

index 6e7c2afe38c38aea708f789368aa8152a1564439..0d3a3a461d76808258285a8becae7d289ab1a9ad 100644 (file)
@@ -7,6 +7,10 @@ Thu Jun 16 14:25:22 1994  Eric Youngdale  ([email protected])
 
 Thu Jun 16 12:22:01 1994  Ian Lance Taylor  ([email protected])
 
+       * lexsup.c (parse_args): Add -shared to longopts, and handle it.
+       * ldmain.c (main): Initialize link_info.shared to false.  Give
+       error if link_info.relocateable and link_info.shared are both set.
+
        * configure.in: If EMUL_EXTRA* is defined in a config file, treat
        it as naming an emulation to be added to EMULATION_OFILES.
        * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
index 5b2e370f8a5bf9b9a366801cdd15150b9564a549..7ee24f366b1ee525f9207e06bb07f64b3aa28c88 100644 (file)
@@ -166,6 +166,7 @@ main (argc, argv)
 
   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;
@@ -201,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
This page took 0.04553 seconds and 4 git commands to generate.