mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 21:22:20 +08:00
From Cary Coutant: Fix a case in which code takes the address of a
function and also calls it directly.
This commit is contained in:
@ -1028,7 +1028,7 @@ Target_x86_64::Scan::global(const General_options& options,
|
||||
// taking the address of a function. In that case we need to
|
||||
// set the entry in the dynamic symbol table to the address of
|
||||
// the PLT entry.
|
||||
if (gsym->is_from_dynobj())
|
||||
if (gsym->is_from_dynobj() && !parameters->output_is_shared())
|
||||
gsym->set_needs_dynsym_value();
|
||||
}
|
||||
// Make a dynamic relocation if necessary.
|
||||
|
Reference in New Issue
Block a user