Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
illumos: Treat absolute symbols specially
illumos is a descendent of Solaris/OpenSolaris, and treats symbols with shndx=SHN_ABS and st_value=0 specially, such that they should be marked imported. This change adds a special case for this behavior, wrapped up in a function that #ifdef's out on other platforms. With this patch, executables linked with mold on illumos run; without it, they do not. The original behavior was spotted by Luqman Aden (@luqmana). This also patches a small bogon in the third-party `mimalloc` code. I've sent that same fix upstream, but so far the maintainer has not resonded, so replicate here. Fixes #1183 Signed-off-by: Dan Cross <cross@oxidecomputer.com>
- Loading branch information