mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 21:22:20 +08:00
From Cary Coutant: Fix handling of versioned symbols, add some tests.
This commit is contained in:
@ -1483,7 +1483,10 @@ Target_x86_64::Relocate::relocate(const Relocate_info<64, false>* relinfo,
|
||||
case elfcpp::R_X86_64_PLT32:
|
||||
gold_assert(gsym == NULL
|
||||
|| gsym->has_plt_offset()
|
||||
|| gsym->final_value_is_known());
|
||||
|| gsym->final_value_is_known()
|
||||
|| (gsym->is_defined()
|
||||
&& !gsym->is_from_dynobj()
|
||||
&& !gsym->is_preemptible()));
|
||||
// Note: while this code looks the same as for R_X86_64_PC32, it
|
||||
// behaves differently because psymval was set to point to
|
||||
// the PLT entry, rather than the symbol, in Scan::global().
|
||||
|
Reference in New Issue
Block a user