Re:Embedding files in C programs with koio
by tetromino_ on Wednesday May 30, 2018 @06:12PM
(#17192357)
Except that MacOS does not use ELF, it uses Mach-O.
[ Parent
| on HN ]
Re:Embedding files in C programs with koio
by planteen on Wednesday May 30, 2018 @07:19PM
(#17192735)
Clang handles intermediate ELF object files fine and can link into a Mach-O final executable.
Windows under MSVC doesn't use ELF either (it uses PE for the .EXE) and it links in intermediate ELF object files fine. I've made an EXE that was a mix of files compiled by MSVC and GCC.