[llvm-bugs] [Bug 52398] New: lld/mac category behavior doesn't match ld64

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 3 22:06:16 PDT 2021


            Bug ID: 52398
           Summary: lld/mac category behavior doesn't match ld64
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: keithbsmiley at gmail.com
                CC: gkm at fb.com, jezreel at gmail.com,
                    llvm-bugs at lists.llvm.org, smeenai at fb.com

With this Objective-C code:

#import <Foundation/Foundation.h>

@interface NSArray (first)
- (void)firstMethod;

@implementation NSArray (first)
- (void)firstMethod {}

@interface NSArray (second)
- (void)secondMethod;

@implementation NSArray (second)
- (void)secondMethod {}

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]

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?

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211104/cebeeeac/attachment.html>

More information about the llvm-bugs mailing list