we had a similar problem trying to port Swift to Amazon Linux 2023, and the only thing that really worked for us was symlinking ld.gold to ld.
ld.gold
ld