From 97a63ca8d03e15b20057848c2f47c578b6c69352 Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 1 Jun 2022 18:33:16 +0800 Subject: [PATCH] dyld: add EXIDX entry type The type is just for aesthetic. The interpretation of an index table entry is not our concern. --- src/libdyld/src/elf.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libdyld/src/elf.rs b/src/libdyld/src/elf.rs index ddfbec6a..e988b87a 100644 --- a/src/libdyld/src/elf.rs +++ b/src/libdyld/src/elf.rs @@ -2726,6 +2726,9 @@ impl Clone for Elf64_Lib { fn clone(&self) -> Self { *self } } pub type Elf32_Conflict = Elf32_Addr; +#[repr(C)] +#[derive(Clone, Copy)] +pub struct EXIDX_Entry(u32, u32); pub fn ELF32_R_SYM(info: Elf32_Word) -> Elf32_Word { info >> 8 } pub fn ELF32_R_TYPE(info: Elf32_Word) -> u8 { info as u8 }