zig ld: ability to link tbds on macOS #8935
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
linking
os-macos
Milestone
Currently,
zig ld
can successfully link object files.o
, static libraries.a
, and (limited to no re-exports) dynamic libraries.dylib
. However, starting with macOS 11 aka BigSur, no actual system dynamic libraries are available for browsing on the filesystem (well, they are available somewhere in thedyld
's global cache). Instead, the linker is supposed to use the so-called text-based definition files.tbd
s which are compact representation of the symbol tables found within the actual dynamic library and its re-exports.zig ld
cannot linktbd
s yet and they are required if anyone wants to build stage2 with Homebrew's Zig and/or LLVM since LLVM is built with systemlibxml2
(which is only available as atbd
on recent macOS).The text was updated successfully, but these errors were encountered: