Skip to content

Commit

Permalink
elf2rel: Fix the addend being ignored on relocations against external…
Browse files Browse the repository at this point in the history
… symbols
  • Loading branch information
PistonMiner committed Jun 6, 2019
1 parent 0046137 commit bd8e16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttyd-tools/elf2rel/elf2rel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ int main(int argc, char **argv)

rel.moduleID = 0;
rel.targetSection = 0; // #todo-elf2rel: Check if this is important
rel.addend = it->second;
rel.addend = static_cast<uint32_t>(addend + it->second);
}
}

Expand Down

0 comments on commit bd8e16c

Please sign in to comment.