Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit 3e0c2e6

Browse files
support DW_AT_high_pc when its data type is data8 (paritytech#275)
1 parent 78eab63 commit 3e0c2e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/polkavm-linker/src/dwarf.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ impl<R: gimli::Reader> AttributeParser<R> {
340340
self.size = Some(u64::from(value));
341341
Ok(())
342342
}
343+
AttributeValue {
344+
value: gimli::AttributeValue::Data8(value),
345+
..
346+
} => {
347+
log::trace!(" = DW_AT_low_pc + {value} (size/data8)");
348+
self.size = Some(value);
349+
Ok(())
350+
}
343351
_ => Err(UnsupportedValue(value)),
344352
},
345353
gimli::DW_AT_ranges => match value {

0 commit comments

Comments
 (0)