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

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 06:52:41 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
----------------
alx32 wrote:

Yes, the goal is to not crash. But I added a check for the metadata also, for completeness.

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


More information about the llvm-commits mailing list