mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-16 04:18:50 +00:00
From Craig Silverstein: Rework debug info code a bit, add option for
ODR violations, add test case.
This commit is contained in:
@@ -243,7 +243,8 @@ Symbol_table::resolve(Sized_symbol<size>* 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 (orig_sym.get_st_bind() == elfcpp::STB_WEAK
|
||||
if (parameters->detect_odr_violations()
|
||||
&& orig_sym.get_st_bind() == elfcpp::STB_WEAK
|
||||
&& to->binding() == elfcpp::STB_WEAK
|
||||
&& orig_sym.get_st_shndx() != elfcpp::SHN_UNDEF
|
||||
&& to->shndx() != elfcpp::SHN_UNDEF
|
||||
|
||||
Reference in New Issue
Block a user