On Darwin, building a malicious package using cgo can lead to arbitrary code execution when utilizing the Apple linker. This occurs when a `#cgo LDFLAGS` directive passes `-l to library <path>`, causing the Apple linker to recombine these arguments into `-lto library`. This process results in the loading of an arbitrary LTO (Link Time Optimization) plugin dynamic library during the linking phase.