[llvm-bugs] [Bug 48395] New: ld64.lld.darwinnew-linked binaries don't run on macOS 10.13

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 4 12:34:50 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48395

            Bug ID: 48395
           Summary: ld64.lld.darwinnew-linked binaries don't run on macOS
                    10.13
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org

Repro:
1. Download
https://drive.google.com/file/d/1Gjrg4bQCv3uD9Ucqt4ZtroHrz5v0iCJX/view?resourcekey=0-f53UMW57gtrPlSis2sTjKg
and unzip it

2. ~/src/llvm-project/out/gn/bin/ld64.lld.darwinnew @response.txt

3. ./base_unittests --gtest_filter='*Exception*'

on macOS 10.14+, that starts fine (the test fails, but that's issue 48389).

On macOS 10.13, it fails with:

```
dyld: Symbol not found: __objc_empty_cache
  Referenced from: /b/s/w/ir/out/gnmac/./base_unittests
  Expected in:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 in /b/s/w/ir/out/gnmac/./base_unittests
```

(It works fine with ld64.)


MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd
has a re-export of MacOSX.sdk/usr/lib/libobjc.tbd, so maybe that symbol moved
between dylibs in 10.14, or dyld got more forgiving with incorrect two-level
namespaces or something.

-- 
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/20201204/fedf0fe7/attachment.html>


More information about the llvm-bugs mailing list