3 ms·
You are just dealing with ELF files, so objcopy works fine in those scenarios as long as the architecture matches for the linker. This trick works many other co
by planteen 8y ago
You are just dealing with ELF files, so objcopy works fine in those scenarios as long as the architecture matches for the linker. This trick works many other compilers that use ELF such as clang, MSVC, Green Hills, etc.
- tetromino_ 8y agoExcept that MacOS does not use ELF, it uses Mach-O.
- planteen 8y agoClang 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.