projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: alpha-vms: shift exponent is too large
[deliverable/binutils-gdb.git]
/
gold
/
options.cc
diff --git
a/gold/options.cc
b/gold/options.cc
index f54fb9b1cb4946a177fbda740915f3086896fa12..d92394120a54f2cafdb40274c574688929b3f0c8 100644
(file)
--- a/
gold/options.cc
+++ b/
gold/options.cc
@@
-1,6
+1,6
@@
// options.c -- handle command line options for gold
// options.c -- handle command line options for gold
-// Copyright (C) 2006-201
7
Free Software Foundation, Inc.
+// Copyright (C) 2006-201
9
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-448,7
+448,6
@@
General_options::parse_library(const char*, const char* arg,
cmdline->inputs().add_file(file);
}
cmdline->inputs().add_file(file);
}
-#ifdef ENABLE_PLUGINS
void
General_options::parse_plugin(const char*, const char* arg,
Command_line*)
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);
}
{
this->add_plugin_option(arg);
}
-#endif // ENABLE_PLUGINS
void
General_options::parse_R(const char* option, const char* arg,
void
General_options::parse_R(const char* option, const char* arg,
@@
-1208,6
+1206,13
@@
General_options::finalize()
program_name);
#endif
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())
{
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"));
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"));
if (this->gc_sections())
{
gold_warning(_("ignoring --gc-sections for an incremental link"));
This page took
0.024031 seconds
and
4
git commands to generate.