From 924a2b0a9f1c9a0300df1b773e2b6f97d57d8834 Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Tue, 7 Jan 2020 16:41:23 +1000 Subject: [PATCH] mach: fix generic reloc constants --- src/mach/relocation.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mach/relocation.rs b/src/mach/relocation.rs index 940190d52..d165646ce 100644 --- a/src/mach/relocation.rs +++ b/src/mach/relocation.rs @@ -125,8 +125,9 @@ pub const X86_64_RELOC_TLV: RelocType = 9; pub const GENERIC_RELOC_VANILLA: RelocType = 0; pub const GENERIC_RELOC_PAIR: RelocType = 1; pub const GENERIC_RELOC_SECTDIFF: RelocType = 2; -pub const GENERIC_RELOC_LOCAL_SECTDIFF: RelocType = 3; -pub const GENERIC_RELOC_PB_LA_P: RelocType = 4; +pub const GENERIC_RELOC_PB_LA_PTR: RelocType = 3; +pub const GENERIC_RELOC_LOCAL_SECTDIFF: RelocType = 4; +pub const GENERIC_RELOC_TLV: RelocType = 5; // arm relocations pub const ARM_RELOC_VANILLA: RelocType = GENERIC_RELOC_VANILLA; @@ -218,8 +219,9 @@ pub fn reloc_to_str(reloc: RelocType, cputype: mach::cputype::CpuType) -> &'stat GENERIC_RELOC_VANILLA => "GENERIC_RELOC_VANILLA", GENERIC_RELOC_PAIR => "GENERIC_RELOC_PAIR", GENERIC_RELOC_SECTDIFF => "GENERIC_RELOC_SECTDIFF", + GENERIC_RELOC_PB_LA_PTR => "GENERIC_RELOC_PB_LA_PTR", GENERIC_RELOC_LOCAL_SECTDIFF => "GENERIC_RELOC_LOCAL_SECTDIFF", - GENERIC_RELOC_PB_LA_P => "GENERIC_RELOC_PB_LA_P", + GENERIC_RELOC_TLV => "GENERIC_RELOC_TLV", _ => "UNKNOWN", } },