File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ pub struct Section {
70
70
pub id : String ,
71
71
pub name : String ,
72
72
pub address : u64 ,
73
+ pub offset : Option < u64 > ,
73
74
pub size : u64 ,
74
75
pub kind : SectionKind ,
75
76
pub data : SectionData ,
@@ -414,6 +415,7 @@ static DUMMY_SECTION: Section = Section {
414
415
id : String :: new ( ) ,
415
416
name : String :: new ( ) ,
416
417
address : 0 ,
418
+ offset : None ,
417
419
size : 0 ,
418
420
kind : SectionKind :: Unknown ,
419
421
data : SectionData ( Vec :: new ( ) ) ,
Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ fn map_sections(
273
273
id,
274
274
name : name. to_string ( ) ,
275
275
address : section. address ( ) ,
276
+ offset : section. file_range ( ) . map ( |( start, _) | start) ,
276
277
size : section. size ( ) ,
277
278
kind,
278
279
data : SectionData ( data) ,
You can’t perform that action at this time.
0 commit comments