From 9813b46aaed4607cfd18856812b336f2332f3768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Proch=C3=A1zka?= Date: Fri, 5 Apr 2024 22:33:53 +0200 Subject: [PATCH] fix flags --- src/kernel/src/rtld/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/src/rtld/mod.rs b/src/kernel/src/rtld/mod.rs index fd924f702..ce1eaf89f 100644 --- a/src/kernel/src/rtld/mod.rs +++ b/src/kernel/src/rtld/mod.rs @@ -790,7 +790,7 @@ impl RuntimeLinker { self.relocate_rela(md, mem.as_mut(), &mut relocated, resolver)?; - if !md.flags().contains(ModuleFlags::UNK4) { + if !md.flags().contains(ModuleFlags::JMPSLOTS_DONE) { self.relocate_plt(md, mem.as_mut(), &mut relocated, resolver)?; } @@ -1059,7 +1059,7 @@ impl RuntimeLinker { info.tlsoffset = (*md.tls_offset()).try_into().unwrap(); // Initialization and finalization functions. - if !md.flags().contains(ModuleFlags::UNK5) { + if !md.flags().contains(ModuleFlags::NOT_GET_PROC) { info.init = md.init().map(|v| addr + v).unwrap_or(0); info.fini = md.fini().map(|v| addr + v).unwrap_or(0); }