Commit ID a8032d4c781f14fa0bd561d96e719492aee08c23
|
|
Contributor: | Dimitri John Ledkov | Files Modified | 1 |
| Date: | 29-January-2026 at 04:30 | Lines Added: | 32 | |
| Repository: | https://go.googlesource.com/go master | Lines Removed: | 6 | |
| Commit Comment: | cmd/link: use bfd ld 2.36+ on linux/arm64 instead of gold The bfd linker has been fixed for a while. In the mean time gold got deprecated and has stopped receiving new features. Add runtime version checking and only use gold, if bfd ld 2.35 and lower is detected. This enables using `-buildmode=shared` on arm64 without installing binutils-gold (on distributions that split package this), as well as to use external ldflags that ld.bfd supports, and ld.gold does not. For example, this enables to specify gcs-report-dynamic=none when building with GCC-15. Fixes #22040. Change-Id: I4eb8b3dabb78844ff662332ad63a4625278271b1 Reviewed-on: https://go-review.googlesource.com/c/go/+/740480 Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Mark Freeman <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Cherry Mui <[email protected]> | |||
| Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed | |
|---|---|---|---|---|---|---|---|
| Go | 24 | 3 | 6 | 3 | 2 | 0 | |
| File | Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed |
|---|---|---|---|---|---|---|---|
| src/cmd/link/internal/ld/lib.go | Go | 24 | 3 | 6 | 3 | 2 | 0 |