aboutsummaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-20 05:22:37 +0000
committerIan Lance Taylor <iant@google.com>2008-03-20 05:22:37 +0000
commiteb42429a935fcf4d18085b7ba01137083cee8857 (patch)
tree2dfbc0544375227c543f7ca3e9b2ed2254adfcb9 /gold/target-reloc.h
parent4a72605d84b850ead196df52a542c630b49e953d (diff)
downloadgdb-eb42429a935fcf4d18085b7ba01137083cee8857.zip
gdb-eb42429a935fcf4d18085b7ba01137083cee8857.tar.gz
gdb-eb42429a935fcf4d18085b7ba01137083cee8857.tar.bz2
From Craig Silverstein: implement -z defs.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index c5bb4f1..eab3c37 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -217,7 +217,8 @@ relocate_section(
if (sym != NULL
&& sym->is_undefined()
&& sym->binding() != elfcpp::STB_WEAK
- && !parameters->options().shared())
+ && (!parameters->options().shared() // -shared
+ || parameters->options().defs())) // -z defs
gold_undefined_symbol(sym, relinfo, i, offset);
if (sym != NULL && sym->has_warning())