We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c68155 commit f212b35Copy full SHA for f212b35
src/util/split.rs
@@ -644,7 +644,9 @@ fn add_padding_symbols(obj: &mut ObjInfo) -> Result<()> {
644
645
// Check if symbol is missing data between the end of the symbol and the next symbol
646
let symbol_end = (symbol.address + symbol.size) as u32;
647
- if section.kind != ObjSectionKind::Code && next_address > symbol_end {
+ if !matches!(section.kind, ObjSectionKind::Code | ObjSectionKind::Bss)
648
+ && next_address > symbol_end
649
+ {
650
let data = section.data_range(symbol_end, next_address)?;
651
if data.iter().any(|&x| x != 0) {
652
log::debug!(
0 commit comments