Skip to content

Commit cb92962

Browse files
motokultivatorDjordje Todorovic
authored andcommitted
Consider r_addend for the current relocation
1 parent c444d41 commit cb92962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gold/nanomips.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8557,7 +8557,7 @@ Target_nanomips<size, big_endian>::Relocate::relocate(
85578557
// If we didn't apply previous relocation, use its result as addend
85588558
// for the current.
85598559
if (this->calculate_only_)
8560-
r_addend = this->calculated_value_;
8560+
r_addend += this->calculated_value_;
85618561

85628562
const Nanomips_reloc_property* next_reloc_property =
85638563
nanomips_reloc_property_table->get_reloc_property(next_r_type);

0 commit comments

Comments
 (0)