Skip to content

Commit

Permalink
Fix writing empty v3 RELs
Browse files Browse the repository at this point in the history
Resolves #59
  • Loading branch information
encounter committed Jun 10, 2024
1 parent e359ea1 commit 3841004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/rel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,9 @@ where
&mut offset,
)?;
}
} else if info.version >= 3 {
// If we don't have relocations, still set fix_size.
header.fix_size = Some(offset);
}

for symbol in file.symbols().filter(|s| s.is_definition()) {
Expand Down

0 comments on commit 3841004

Please sign in to comment.