mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* output.h (Output_data_reloc_generic::add): Only call
add_dynamic_reloc if this is a dynamic reloc section.
This commit is contained in:
parent
3448d4bf3c
commit
8b8dd8d585
@ -1,3 +1,8 @@
|
||||
2011-12-16 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* output.h (Output_data_reloc_generic::add): Only call
|
||||
add_dynamic_reloc if this is a dynamic reloc section.
|
||||
|
||||
2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR gold/13505
|
||||
|
@ -1458,7 +1458,8 @@ class Output_data_reloc_base : public Output_data_reloc_generic
|
||||
{
|
||||
this->relocs_.push_back(reloc);
|
||||
this->set_current_data_size(this->relocs_.size() * reloc_size);
|
||||
od->add_dynamic_reloc();
|
||||
if (dynamic)
|
||||
od->add_dynamic_reloc();
|
||||
if (reloc.is_relative())
|
||||
this->bump_relative_reloc_count();
|
||||
Sized_relobj<size, big_endian>* relobj = reloc.get_relobj();
|
||||
|
Loading…
Reference in New Issue
Block a user