We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d4b6e7 commit 62ad48aCopy full SHA for 62ad48a
1 file changed
src/binary/load_kernel.rs
@@ -344,8 +344,9 @@ where
344
} else {
345
// The section doesn't contain any relocations.
346
347
- assert_eq!(rela_size, None);
348
- assert_eq!(rela_ent, None);
+ if rela_size.is_some() || rela_ent.is_some() {
+ return Err("Rela entry is missing but RelaSize or RelaEnt have been provided");
349
+ }
350
351
return Ok(());
352
};
0 commit comments