From 7213def760558d19c934ebd3175577dce3580846 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 10 Jul 1995 21:16:40 +0000 Subject: [PATCH] Based on patches from H.J. Lu : * 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 | 15 +++++++++++++++ ld/ldmain.c | 2 -- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 92622c3206b..c80675a9cbd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,20 @@ Mon Jul 10 13:38:28 1995 Ian Lance Taylor + Based on patches from H.J. Lu : + * 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. diff --git a/ld/ldmain.c b/ld/ldmain.c index c3f531d9404..55049d71c46 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -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"); } -- 2.30.2