Fix writing empty v3 RELs

Resolves #59
This commit is contained in:
Luke Street 2024-06-10 17:38:11 -06:00
parent e359ea1e9e
commit 3841004947
1 changed files with 3 additions and 0 deletions

View File

@ -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()) {