Skip to content

Commit 65fb337

Browse files
PistonMinerZephiles
authored andcommitted
elf2rel: Fix R_DOLPHIN_NOP being emitted with zero offset
1 parent 6ef12c7 commit 65fb337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttyd-tools/elf2rel/elf2rel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ int main(int argc, char **argv)
497497
int targetDelta = nextRel.offset - currentOffset;
498498
while (targetDelta > 0xFFFF)
499499
{
500-
writeRelocation(outputBuffer, 0, R_DOLPHIN_NOP, 0, 0);
500+
writeRelocation(outputBuffer, 0xFFFF, R_DOLPHIN_NOP, 0, 0);
501501
targetDelta -= 0xFFFF;
502502
}
503503

0 commit comments

Comments
 (0)