]> Cypherpunks repositories - gostls13.git/commit
cmd/link: detect glibc vs musl ldso at link time
authorRuss Cox <rsc@golang.org>
Tue, 2 Aug 2022 14:12:52 +0000 (10:12 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 8 Aug 2022 21:12:57 +0000 (21:12 +0000)
commit3315066f46d5dce3e4474bdcde0997d688c79436
treeaba25c60d06164f94aff61c5f8d9082973f9ae9e
parent52dfdc5e1e6f4f8ddd99f238e37b6c255f5ab6bd
cmd/link: detect glibc vs musl ldso at link time

Doing the test at link time lets us distribute one Linux toolchain
that works on both glibc-based and musl-based Linux systems.
The old way built a toolchain that only ran on one or the other.

Fixes #54197.

Change-Id: Iaae8c274c78e1091eee828a720b49646be9bfffe
Reviewed-on: https://go-review.googlesource.com/c/go/+/420774
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
12 files changed:
src/cmd/link/internal/amd64/obj.go
src/cmd/link/internal/arm/obj.go
src/cmd/link/internal/arm64/obj.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/loong64/obj.go
src/cmd/link/internal/mips/obj.go
src/cmd/link/internal/mips64/obj.go
src/cmd/link/internal/ppc64/obj.go
src/cmd/link/internal/s390x/obj.go
src/cmd/link/internal/x86/obj.go
src/make.bash