[lld] [lld-macho] Category merger: handle addends when getting symbol at offset (PR #91238)

Vincent Lee via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 15:20:02 PDT 2024


================
@@ -0,0 +1,357 @@
+# REQUIRES: aarch64
+# RUN: rm -rf %t; mkdir %t && cd %t
+
+############ Test merging multiple categories into a single category ############
+## Apply category merging to swiftc code just make sure we can handle addends
+## and don't erase cateogry names for swift -- in order to not crash
+# RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos -o cat_swift.o %s
+# RUN: %lld -arch arm64 -dylib -o cat_swift.dylib cat_swift.o -objc_category_merging
----------------
thevinster wrote:

Are you just validating that it doesn't crash? No checks on the output? 

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


More information about the llvm-commits mailing list