From 8851eccaec28f25f56fab5ba5d8ae44f71729975 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 28 Feb 2008 00:18:24 +0000 Subject: From Craig Silverstein: Have Parameters point to General_options. --- gold/resolve.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/resolve.cc') diff --git a/gold/resolve.cc b/gold/resolve.cc index 63ed5e7..185327b 100644 --- a/gold/resolve.cc +++ b/gold/resolve.cc @@ -243,7 +243,7 @@ Symbol_table::resolve(Sized_symbol* to, // is an ODR violation. But it's helpful to warn about.) // We use orig_sym here because we want the symbol exactly as it // appears in the object file, not munged via our future processing. - if (parameters->detect_odr_violations() + if (parameters->options().detect_odr_violations() && orig_sym.get_st_bind() == elfcpp::STB_WEAK && to->binding() == elfcpp::STB_WEAK && orig_sym.get_st_shndx() != elfcpp::SHN_UNDEF -- cgit v1.1