diff options
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index 7f1f69e..39dc311 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -1256,6 +1256,8 @@ General_options::finalize() "--emit-relocs")); if (this->has_plugins()) gold_fatal(_("incremental linking is not compatible with --plugin")); + if (this->relro()) + gold_fatal(_("incremental linking is not compatible with -z relro")); if (this->gc_sections()) { gold_warning(_("ignoring --gc-sections for an incremental link")); |