I have two Linux systems, one has the latest Swift (5.3-dev) and ld.gold version 2.33.1, and other other has a month-old Swift (also called 5.3-dev) and ld.gold version 2.31.1.
The older linker and Swift compiler successfully compile some code that I've written, but the newer pair does not. In particular, the linker says:
/usr/bin/ld.gold: error: myfile.o: requires unsupported dynamic reloc 11; recompile with -fPIC
I'm compiling with only one switch for importing a objc header file.
Does anyone know if this is a known bug with Swift emitting bad object code or with ld.gold no longer accepting good object code? Is there a fix for it? If I could override swiftc's choice of loader to add the -fPIC that might be a short-term fix but perhaps this should be repaired upstream.