Hi team,

 

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.

 

Christian 

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to