mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-14 18:43:33 +00:00
Fix BSS symbol data check in add_padding_symbols
This commit is contained in:
parent
9c681557f5
commit
f212b35d28
@ -644,7 +644,9 @@ fn add_padding_symbols(obj: &mut ObjInfo) -> Result<()> {
|
||||
|
||||
// Check if symbol is missing data between the end of the symbol and the next symbol
|
||||
let symbol_end = (symbol.address + symbol.size) as u32;
|
||||
if section.kind != ObjSectionKind::Code && next_address > symbol_end {
|
||||
if !matches!(section.kind, ObjSectionKind::Code | ObjSectionKind::Bss)
|
||||
&& next_address > symbol_end
|
||||
{
|
||||
let data = section.data_range(symbol_end, next_address)?;
|
||||
if data.iter().any(|&x| x != 0) {
|
||||
log::debug!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user