ld linker is missing when installing gcc using Homebrew on Mac OS
As explained in this Homebrew Github issue:


  GNU binutils's ld does not support Darwin (macOS), and is thus not built [in the Homebrew package]


Use the ld version provided with macOS located at /usr/bin/ld.