Based on patches from H.J. Lu <hjl@nynexst.com>:
authorIan Lance Taylor <ian@airs.com>
Mon, 10 Jul 1995 21:16:40 +0000 (21:16 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 10 Jul 1995 21:16:40 +0000 (21:16 +0000)
* ldlang.h (lang_input_statement_type): Add new field dynamic.
* ldlang.c (new_afile): Set dynamic from config.dynamic_link.
* ldfile.c: Include bfdlink.h.
(ldfile_open_file): Check dynamic field of entry, not global
dynamic_link field.  Don't do a dynamic search when doing a
relocateable link.
* ldmain.c (main): Don't warn about dynamic_link for a
relocateable link.
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
dynamic is false.
(gld${EMULATION_NAME}_create_output_section_statements): Always
loop over input files.
* Makefile.in: Rebuild dependencies.

ld/ChangeLog
ld/ldmain.c

index 92622c3206b78356a87c1541ff1dbf0fffcfa5c3..c80675a9cbdadbdfd0be1c8ff701d7ee44ba32af 100644 (file)
@@ -1,5 +1,20 @@
 Mon Jul 10 13:38:28 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       Based on patches from H.J. Lu <hjl@nynexst.com>:
+       * ldlang.h (lang_input_statement_type): Add new field dynamic.
+       * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
+       * ldfile.c: Include bfdlink.h.
+       (ldfile_open_file): Check dynamic field of entry, not global
+       dynamic_link field.  Don't do a dynamic search when doing a
+       relocateable link.
+       * ldmain.c (main): Don't warn about dynamic_link for a
+       relocateable link.
+       * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
+       dynamic is false.
+       (gld${EMULATION_NAME}_create_output_section_statements): Always
+       loop over input files.
+       * Makefile.in: Rebuild dependencies.
+
        * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
        -shared.
 
index c3f531d940447e5349d38291719da3afdc118bdb..55049d71c46049740f37948e52155936a267a045 100644 (file)
@@ -220,8 +220,6 @@ main (argc, argv)
     {
       if (command_line.relax)
        einfo ("%P%F: -relax and -r may not be used together\n");
-      if (config.dynamic_link)
-       einfo ("%P%F: -r and -call_shared may not be used together\n");
       if (link_info.shared)
        einfo ("%P%F: -r and -shared may not be used together\n");
     }
This page took 0.030685 seconds and 4 git commands to generate.