File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/hyperlight_host/src/mem Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ impl ElfInfo {
78
78
. copy_from_slice ( & self . payload [ payload_offset..payload_offset + payload_len] ) ;
79
79
target[ start_va + payload_len..start_va + phdr. p_memsz as usize ] . fill ( 0 ) ;
80
80
}
81
- let get_addend = |name, r : & Reloc | r. r_addend . ok_or ( new_error ! ( "{} missing addend" , name) ) ;
81
+ let get_addend = |name, r : & Reloc | {
82
+ r. r_addend
83
+ . ok_or_else ( || new_error ! ( "{} missing addend" , name) )
84
+ } ;
82
85
for r in self . relocs . iter ( ) {
83
86
#[ cfg( target_arch = "aarch64" ) ]
84
87
match r. r_type {
@@ -101,7 +104,7 @@ impl ElfInfo {
101
104
}
102
105
R_X86_64_NONE => { }
103
106
_ => {
104
- log_then_return ! ( "unsupported x86_64 relocation {}" , r . r_type ) ;
107
+ log_then_return ! ( "unsupported x86_64 relocation" ) ;
105
108
}
106
109
}
107
110
}
You can’t perform that action at this time.
0 commit comments