Workaround for 'collect2: fatal error: cannot find ‘ld’' on aarch64?

On Linux aarch64, I’m getting this compile error despite ld being available:

# github.com/rclone/rclone
/usr/lib/sdk/golang/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
/run/ccache/bin/gcc -Wl,-z,now -Wl,-z,nocopyreloc -fuse-ld=gold -Wl,--build-id=0xa27f3be6a0f85349703b5480f79c1a72aa055c8f -o $WORK/b001/exe/a.out -rdynamic /tmp/go-link-3266372780/go.o /tmp/go-link-3266372780/000000.o /tmp/go-link-3266372780/000001.o /tmp/go-link-3266372780/000002.o /tmp/go-link-3266372780/000003.o /tmp/go-link-3266372780/000004.o /tmp/go-link-3266372780/000005.o /tmp/go-link-3266372780/000006.o /tmp/go-link-3266372780/000007.o /tmp/go-link-3266372780/000008.o /tmp/go-link-3266372780/000009.o /tmp/go-link-3266372780/000010.o /tmp/go-link-3266372780/000011.o /tmp/go-link-3266372780/000012.o /tmp/go-link-3266372780/000013.o /tmp/go-link-3266372780/000014.o /tmp/go-link-3266372780/000015.o /tmp/go-link-3266372780/000016.o /tmp/go-link-3266372780/000017.o /tmp/go-link-3266372780/000018.o /tmp/go-link-3266372780/000019.o /tmp/go-link-3266372780/000020.o /tmp/go-link-3266372780/000021.o /tmp/go-link-3266372780/000022.o /tmp/go-link-3266372780/000023.o /tmp/go-link-3266372780/000024.o /tmp/go-link-3
collect2: fatal error: cannot find ‘ld’

gcc is forcing -fuse-ld=gold, but the gold linker isn’t present on the CI system that Flathub uses to package Flatpak applications. I heard from a Flathub contributor it’s Go bug that isn’t fixed in the latest version yet.

Is there any way I can force Go to use a different linker that is present on the system? I don’t have programming experience with Go, I’m just trying to package the Rclone binary as a dependency of my Flathub application, so any pointers are appreciated.