<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lld/mac category behavior doesn't match ld64"
href="https://bugs.llvm.org/show_bug.cgi?id=52398">52398</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld/mac category behavior doesn't match ld64
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>MachO
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>keithbsmiley@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>gkm@fb.com, jezreel@gmail.com, llvm-bugs@lists.llvm.org, smeenai@fb.com
</td>
</tr></table>
<p>
<div>
<pre>With this Objective-C code:
```
#import <Foundation/Foundation.h>
@interface NSArray (first)
- (void)firstMethod;
@end
@implementation NSArray (first)
- (void)firstMethod {}
@end
@interface NSArray (second)
- (void)secondMethod;
@end
@implementation NSArray (second)
- (void)secondMethod {}
@end
int main() {
return 0;
}
```
The produced binary has significantly different symbols than ld64:
```
--- ld64
+++ lld
@@ -1,7 +1,10 @@
-[NSArray(first) firstMethod]
-[NSArray(second) secondMethod]
_OBJC_CLASS_$_NSArray
+__OBJC_$_CATEGORY_INSTANCE_METHODS_NSArray_$_first
+__OBJC_$_CATEGORY_INSTANCE_METHODS_NSArray_$_second
__OBJC_$_CATEGORY_NSArray_$_first
-__OBJC_$_INSTANCE_METHODS_NSArray(first|second)
+__OBJC_$_CATEGORY_NSArray_$_second
__mh_execute_header
_main
+dyld_stub_binder
```
It's unclear to me if differences like this will be a major issue, but I assume
we're hoping to match ld64 more closely than this?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>