big sur – MacOS equivalent for Ubuntu Linker (ld) command?

I’m following some tutorials from 2015, and in it you run this Linker command:

ld -T linker.ld -melf_i386 loader.o -o kernel.elf

I get this error:

ld: unknown option: -T

I tried to replace it with ld --script=linker.ld -melf_i386 loader.o -o kernel.elf, but this error: ld: unknown option: --script=linker.ld

After now looking through man ld, it seems neither of these are options. This tutorial was designed for Ubuntu, what would be the MacOS equivalent?

If it matters, I am on an Intel Big Sur machine.