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
Paths
| Differential D58205
[ELF] Support GNU compressed sections AbandonedPublic Authored by phosek on Feb 13 2019, 1:18 PM.
Details
Summary These are still being used by some tools, most notable Go, which This has been raised in https://github.com/golang/go/issues/27110
Diff Detail
Event TimelineComment Actions 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. Comment Actions 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. Comment Actions
Do you know when was it fixed? I'm using go1.11.4 and I'm still seeing the failure in Bindings/Go/go.test when running check-llvm. Comment Actions
I think you might need go1.12rc1.
Revision Contents
Diff 186727 lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/OutputSections.h
lld/ELF/OutputSections.cpp
lld/ELF/Writer.cpp
lld/test/ELF/compress-debug-sections.s
|