[llvm] [llvm-objdump][macho] Add support for ObjC relative method lists (PR #84250)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 12:16:58 PDT 2024


================
@@ -3673,6 +3683,12 @@ struct method_list32_t {
   /* struct method32_t first;  These structures follow inline */
 };
 
+struct method_list_delta_t {
+  uint32_t entsize;
+  uint32_t count;
+  /* struct method_delta_t first;  These structures follow inline */
+};
+
----------------
alx32 wrote:

This is an option, but when I looked at it I remember it would result in overly-inter-linked code. 
What if we just bail out `print_method_list_delta_t` before confirming it's an actual delta list ? 
Then there would be no confusing message printed out about `method_delta_t extends past the end of the section`. ?

https://github.com/llvm/llvm-project/pull/84250


More information about the llvm-commits mailing list