Fix padding symbols on REL section boundaries

Regression introduced in 6819a8b
This commit is contained in:
Luke Street 2025-05-11 22:15:02 -06:00
parent c1cbdd56d1
commit 5505120148
3 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@ -348,7 +348,7 @@ dependencies = [
[[package]] [[package]]
name = "decomp-toolkit" name = "decomp-toolkit"
version = "1.5.0" version = "1.5.1"
dependencies = [ dependencies = [
"aes", "aes",
"anyhow", "anyhow",

View File

@ -3,7 +3,7 @@ name = "decomp-toolkit"
description = "Yet another GameCube/Wii decompilation toolkit." description = "Yet another GameCube/Wii decompilation toolkit."
authors = ["Luke Street <luke@street.dev>"] authors = ["Luke Street <luke@street.dev>"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
version = "1.5.0" version = "1.5.1"
edition = "2021" edition = "2021"
publish = false publish = false
repository = "https://github.com/encounter/decomp-toolkit" repository = "https://github.com/encounter/decomp-toolkit"

View File

@ -561,6 +561,7 @@ fn add_padding_symbols(obj: &mut ObjInfo) -> Result<()> {
{ {
let next_split_address = splits let next_split_address = splits
.peek() .peek()
.filter(|(i, _, _, _)| *i == section_index)
.map(|(_, _, addr, _)| *addr as u64) .map(|(_, _, addr, _)| *addr as u64)
.unwrap_or(section.address + section.size); .unwrap_or(section.address + section.size);
let next_symbol_address = obj let next_symbol_address = obj