This function can be called on a LinkGraph to get an anonymous symbol pointing to the start of a mach_header / mach_header_64 block with suitable cputype and cpusubtype values for the LinkGraph, and with filetype = MachO::MH_OBJECT. This functionality will be used in the upcoming compact-unwind support patch: For graphs that do not have a suitable existing header to use (indicated by the presence of a "__jitlink$libunwind_dso_base" symbol) the compact-unwind support plugin will create a local header to use as the dso-base to report to libunwind.
5.2 KiB
5.2 KiB