MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / GetRelocationString

Function GetRelocationString

arch/arm64/arch_arm64.cpp:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139};
140
141static 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
155static const char* GetRelocationString(PeArm64RelocationType rel)

Callers 4

GetRelocationInfoMethod · 0.70
GetRelocationInfoMethod · 0.70
GetRelocationInfoMethod · 0.70
GetRelocationInfoMethod · 0.70

Calls 1

countMethod · 0.45

Tested by

no test coverage detected