Bump to ONDK r30.2

This commit is contained in:
topjohnwu
2026-11-18 02:01:06 -08:00
committed by John Wu
parent 70d233cae2
commit a4fb84b6f8
5 changed files with 19 additions and 15 deletions
+11 -11
View File
@@ -57,18 +57,18 @@ fn process_elf(path: &str) -> anyhow::Result<()> {
});
// Remove unsupported flags
for entry in entries.iter_mut() {
if let Dynamic::Integer { tag, val } = entry {
if *tag == elf::DT_FLAGS_1 {
let new_flags = *val & SUPPORTED_DT_FLAGS as u64;
if new_flags != *val {
println!(
"Replacing unsupported DT_FLAGS_1 {:#x} with {:#x} in '{}'",
*val, new_flags, path
);
*val = new_flags;
}
break;
if let Dynamic::Integer { tag, val } = entry
&& *tag == elf::DT_FLAGS_1
{
let new_flags = *val & SUPPORTED_DT_FLAGS as u64;
if new_flags != *val {
println!(
"Replacing unsupported DT_FLAGS_1 {:#x} with {:#x} in '{}'",
*val, new_flags, path
);
*val = new_flags;
}
break;
}
}
}