2001-07-11 Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jul 2001 14:19:05 +0000 (14:19 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 11 Jul 2001 14:19:05 +0000 (14:19 +0000)
* ldmain.c (main): Disallow -F and -f without -shared.

ld/ChangeLog
ld/ldmain.c

index dd4585e49c9ed37737148a13f24927628022c2e8..0e64d1b167602d6d5483013a2f159425acfd5da8 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-11  Jakub Jelinek  <jakub@redhat.com>
+
+       * ldmain.c (main): Disallow -F and -f without -shared.
+
 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * emultempl/pe.em (after_open): Check for the output_bfd not
index 62d891cc18324482a1528fc274275dca37feec3d..ed0abd6639a08df0539275beb5e552958950750b 100644 (file)
@@ -273,6 +273,14 @@ main (argc, argv)
        einfo (_("%P%F: -r and -shared may not be used together\n"));
     }
 
+  if (! link_info.shared)
+    {
+      if (command_line.filter_shlib)
+       einfo ("%P%F: -F may not be used without -shared\n"));
+      if (command_line.auxiliary_filters)
+       einfo ("%P%F: -f may not be used without -shared\n"));
+    }
+
   /* Treat ld -r -s as ld -r -S -x (i.e., strip all local symbols).  I
      don't see how else this can be handled, since in this case we
      must preserve all externally visible symbols.  */
This page took 0.027816 seconds and 4 git commands to generate.