@@ -41,7 +41,7 @@ fn map_symbol(
41
41
symbol : & object:: Symbol ,
42
42
section_indices : & [ usize ] ,
43
43
split_meta : Option < & SplitMeta > ,
44
- diff_config : & DiffObjConfig
44
+ diff_config : & DiffObjConfig ,
45
45
) -> Result < Symbol > {
46
46
let mut name = symbol. name ( ) . context ( "Failed to process symbol name" ) ?. to_string ( ) ;
47
47
let mut size = symbol. size ( ) ;
@@ -118,7 +118,8 @@ fn map_symbols(
118
118
if symbol_indices. len ( ) <= obj_symbol. index ( ) . 0 {
119
119
symbol_indices. resize ( obj_symbol. index ( ) . 0 + 1 , usize:: MAX ) ;
120
120
}
121
- let symbol = map_symbol ( arch, obj_file, & obj_symbol, section_indices, split_meta, diff_config) ?;
121
+ let symbol =
122
+ map_symbol ( arch, obj_file, & obj_symbol, section_indices, split_meta, diff_config) ?;
122
123
symbol_indices[ obj_symbol. index ( ) . 0 ] = symbols. len ( ) ;
123
124
symbols. push ( symbol) ;
124
125
}
@@ -937,8 +938,14 @@ pub fn parse(data: &[u8], config: &DiffObjConfig) -> Result<Object> {
937
938
let split_meta = parse_split_meta ( & obj_file) ?;
938
939
let ( mut sections, section_indices) =
939
940
map_sections ( arch. as_ref ( ) , & obj_file, split_meta. as_ref ( ) ) ?;
940
- let ( mut symbols, symbol_indices) =
941
- map_symbols ( arch. as_ref ( ) , & obj_file, & sections, & section_indices, split_meta. as_ref ( ) , config) ?;
941
+ let ( mut symbols, symbol_indices) = map_symbols (
942
+ arch. as_ref ( ) ,
943
+ & obj_file,
944
+ & sections,
945
+ & section_indices,
946
+ split_meta. as_ref ( ) ,
947
+ config,
948
+ ) ?;
942
949
map_relocations ( arch. as_ref ( ) , & obj_file, & mut sections, & section_indices, & symbol_indices) ?;
943
950
parse_line_info ( & obj_file, & mut sections, & section_indices, data) ?;
944
951
if config. combine_data_sections || config. combine_text_sections {
0 commit comments