X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldmain.c;h=d34d30ae3371a88e94abb5d9774a8325149daee9;hb=5b860c93e3c659625d92a2d2247712a84eac1041;hp=e2c559ea3e03fc7d8250ba2327f70d293c788455;hpb=b32632c49968cd03e952f9b63b32d9e9f1ddaf53;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldmain.c b/ld/ldmain.c index e2c559ea3e..d34d30ae33 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -27,6 +27,7 @@ #include "bfdlink.h" #include "ctf-api.h" #include "filenames.h" +#include "elf/common.h" #include "ld.h" #include "ldmain.h" @@ -39,10 +40,10 @@ #include "ldfile.h" #include "ldemul.h" #include "ldctor.h" -#ifdef ENABLE_PLUGINS +#if BFD_SUPPORTS_PLUGINS #include "plugin.h" #include "plugin-api.h" -#endif /* ENABLE_PLUGINS */ +#endif /* BFD_SUPPORTS_PLUGINS */ /* Somewhere above, sys/stat.h got included. */ #if !defined(S_ISDIR) && defined(S_IFDIR) @@ -163,7 +164,7 @@ static void ld_cleanup (void) { bfd_cache_close_all (); -#ifdef ENABLE_PLUGINS +#if BFD_SUPPORTS_PLUGINS plugin_call_cleanup (); #endif if (output_filename && delete_output_file_on_failure) @@ -307,6 +308,7 @@ main (int argc, char **argv) #ifdef DEFAULT_NEW_DTAGS link_info.new_dtags = DEFAULT_NEW_DTAGS; #endif + link_info.start_stop_visibility = STV_PROTECTED; ldfile_add_arch (""); emulation = get_emulation (argc, argv); @@ -321,10 +323,10 @@ main (int argc, char **argv) if (config.hash_table_size != 0) bfd_hash_set_default_size (config.hash_table_size); -#ifdef ENABLE_PLUGINS +#if BFD_SUPPORTS_PLUGINS /* Now all the plugin arguments have been gathered, we can load them. */ plugin_load_plugins (); -#endif /* ENABLE_PLUGINS */ +#endif /* BFD_SUPPORTS_PLUGINS */ ldemul_set_symbols (); @@ -828,7 +830,7 @@ add_archive_element (struct bfd_link_info *info, (if enabled) may possibly alter it to point to a replacement BFD, but we still want to output the original BFD filename. */ orig_input = *input; -#ifdef ENABLE_PLUGINS +#if BFD_SUPPORTS_PLUGINS if (link_info.lto_plugin_active) { /* We must offer this archive member to the plugins to claim. */ @@ -849,7 +851,7 @@ add_archive_element (struct bfd_link_info *info, *subsbfd = input->the_bfd; } } -#endif /* ENABLE_PLUGINS */ +#endif /* BFD_SUPPORTS_PLUGINS */ ldlang_add_file (input);