| 139 | }; |
| 140 | |
| 141 | static const char* GetRelocationString(MachoArm64RelocationType rel) |
| 142 | { |
| 143 | static const char* relocTable[] = {"ARM64_RELOC_UNSIGNED", "ARM64_RELOC_SUBTRACTOR", |
| 144 | "ARM64_RELOC_BRANCH26", "ARM64_RELOC_PAGE21", "ARM64_RELOC_PAGEOFF12", |
| 145 | "ARM64_RELOC_GOT_LOAD_PAGE21", "ARM64_RELOC_GOT_LOAD_PAGEOFF12", "ARM64_RELOC_POINTER_TO_GOT", |
| 146 | "ARM64_RELOC_TLVP_LOAD_PAGE21", "ARM64_RELOC_TLVP_LOAD_PAGEOFF12", "ARM64_RELOC_ADDEND"}; |
| 147 | if (rel < MACHO_MAX_ARM64_RELOCATION) |
| 148 | { |
| 149 | return relocTable[rel]; |
| 150 | } |
| 151 | return "Unknown AArch64 relocation"; |
| 152 | } |
| 153 | |
| 154 | |
| 155 | static const char* GetRelocationString(PeArm64RelocationType rel) |
no test coverage detected