These are still being used by some tools, most notable Go, which
triggers an error in llgo tests anytime lld is being used as the
default linker for Clang.
This has been raised in https://github.com/golang/go/issues/27110
phosek on Feb 13 2019, 1:18 PM.Authored by
I personally think that they should update their toolchain so that they can handle the standardized compressed debug section instead of a GNU-extension, or they should disable tests that depends on the GNU extension by examining if -compressed-debug-section=gnu is supported before running the tests. I particularly dislike the fact that the GNU extension uses .z as a prefix for a compressed section, which honestly seems ugly.
The reason why Go tries to use this flag is because of a bug in Go which has now been fixed. I'd prefer that rather than implementing this feature just for the sake of a bug that has been fixed, affected developers should upgrade Go. To prevent the test from failing, we could arrange to disable the Go bindings test if lld is being used and the version of Go is too old.