X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gold%2Foptions.cc;h=d92394120a54f2cafdb40274c574688929b3f0c8;hb=401e101e0274d401e90e50cd8280a9ff36006477;hp=f54fb9b1cb4946a177fbda740915f3086896fa12;hpb=bd2e3511f74940beec6a39914480ed6ff88c0a71;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/options.cc b/gold/options.cc index f54fb9b1cb..d92394120a 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -1,6 +1,6 @@ // options.c -- handle command line options for gold -// Copyright (C) 2006-2017 Free Software Foundation, Inc. +// Copyright (C) 2006-2019 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -448,7 +448,6 @@ General_options::parse_library(const char*, const char* arg, cmdline->inputs().add_file(file); } -#ifdef ENABLE_PLUGINS void General_options::parse_plugin(const char*, const char* arg, Command_line*) @@ -464,7 +463,6 @@ General_options::parse_plugin_opt(const char*, const char* arg, { this->add_plugin_option(arg); } -#endif // ENABLE_PLUGINS void General_options::parse_R(const char* option, const char* arg, @@ -1208,6 +1206,13 @@ General_options::finalize() program_name); #endif +#ifndef ENABLE_PLUGINS + if (this->has_plugins()) + gold_fatal(_("cannot use --plugin: " + "%s was compiled without plugin support"), + program_name); +#endif + std::string libpath; if (this->user_set_Y()) { @@ -1343,6 +1348,8 @@ General_options::finalize() gold_fatal(_("incremental linking is not compatible with --plugin")); if (this->relro()) gold_fatal(_("incremental linking is not compatible with -z relro")); + if (this->pie()) + gold_fatal(_("incremental linking is not compatible with -pie")); if (this->gc_sections()) { gold_warning(_("ignoring --gc-sections for an incremental link"));