]> Cypherpunks repositories - gostls13.git/commit
cmd/link: exit early when -d is used on libc platforms
authorCherry Mui <cherryyz@google.com>
Fri, 19 Nov 2021 21:36:03 +0000 (16:36 -0500)
committerCherry Mui <cherryyz@google.com>
Sat, 20 Nov 2021 00:32:49 +0000 (00:32 +0000)
commit57aba325c8c34f3354abc24fca7bc9627949a1c8
treedf454d30406b794d7f52207cef0b412da5119ce6
parentb31dda8a2ad833ea5ec3c807119372b27cc0e782
cmd/link: exit early when -d is used on libc platforms

On platforms where we use libc for syscalls, we dynamically link
with libc and therefore dynamic linking cannot be disabled. Exit
early when -d is specified.

Update #42459.

Change-Id: I05abfe111df723b5ee512ceafef734e3804dd0a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/365658
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/ld/target.go
src/cmd/link/internal/ld/xcoff.go