[llvm] [llvm-objdump][macho] Add support for ObjC relative method lists (PR #84250)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 11:14:34 PDT 2024
================
@@ -4440,8 +4473,103 @@ static void print_layout_map32(uint32_t p, struct DisassembleInfo *info) {
print_layout_map(layout_map, left);
}
+// Return true if this is a delta method list, false otherwise
+static bool print_method_list_delta_t(uint64_t p, struct DisassembleInfo *info,
+ const char *indent,
+ uint32_t pointerBits) {
+ struct method_list_delta_t ml;
+ struct method_delta_t m;
+ const char *r, *name;
+ uint32_t offset, xoffset, left, i;
+ SectionRef S, xS;
+
+ r = get_pointer_32(p, offset, left, S, info);
+ if (r == nullptr)
+ return false;
+ memset(&ml, '\0', sizeof(struct method_list_delta_t));
+ if (left < sizeof(struct method_list_delta_t)) {
+ memcpy(&ml, r, left);
+ outs() << " (method_delta_t entends past the end of the section)\n";
----------------
kyulee-com wrote:
`entends`? Is it `extends`?
https://github.com/llvm/llvm-project/pull/84250
More information about the llvm-commits
mailing list