From 8b8dd8d585ea24379d2ce48990edac33352dac10 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 16 Dec 2011 23:47:03 +0000 Subject: * output.h (Output_data_reloc_generic::add): Only call add_dynamic_reloc if this is a dynamic reloc section. --- gold/ChangeLog | 5 +++++ gold/output.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gold') diff --git a/gold/ChangeLog b/gold/ChangeLog index bce7739..e3abb30 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2011-12-16 Ian Lance Taylor + + * 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 PR gold/13505 diff --git a/gold/output.h b/gold/output.h index e704213..ef6fea1 100644 --- a/gold/output.h +++ b/gold/output.h @@ -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* relobj = reloc.get_relobj(); -- cgit v1.1