|Subject:||[Tinycc-devel] macOS Big Sur M1 port status|
|Date:||Mon, 22 Feb 2021 10:18:17 +0100|
I started to adapt mob to compile tcc natively on M1 (which is a damn cool and fast CPU, really).
With my few latest changes already pushed on mod, I’m able to build tcc and its libs.
I’m facing an important issue with Big Sur, libc.dylib (or libc.a) no longer exist as file on disk!
After googling a lot, I’ve found it exists “magically” for dlopen.
dlopen(“libc.dylib”, RTLD_NOW) => ok
With few simple (uncommitted) changes I have been able to let tcc succeed searching for libc (using dlopen instead of fopen) but it finally failed at macho_load_dll which reads from opened fd.
I’m don’t know how macho_load_dll could use dlopen instead of read.
For those wo. macOS, I think you can do the same on linux using dlopen.
I’m afraid, with my limited knowledge, I can’t go further on this port.
|[Prev in Thread]||Current Thread||[Next in Thread]|