Is it possible to use a linker script with Apple ld64 linker?

114 Views Asked by At

As in the title, can you use a linker script with Apple ld64 linker? I mean an option similar to -T of GNU ld.

1

There are 1 best solutions below

1
Chris Hanson On

No, this is a feature of the GNU linker and other ELF-centric linkers; Apple's linker handles Mach-O exclusively, which has quite different semantics from ELF.