]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix flags order in linkerFlagSupported
authorSiddhartha Bagaria <starsid@gmail.com>
Wed, 18 Sep 2024 22:05:40 +0000 (15:05 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 23 Oct 2024 16:19:08 +0000 (16:19 +0000)
commit87c03bdf62bfece1d74039e4e07c2aa277149b17
tree830b12d13721a950c8e363deb3061522b37d4bae
parent0f2353997a7ab949b486e232b69e32a0eab12d68
cmd/link: fix flags order in linkerFlagSupported

Flags from CGo directives should be placed before extldflags so that
extldflags get more preference. This is also the order followed by the
final link command.

Fixes #69350

Change-Id: I2cfb22ae4ea7a160cc614440e88ef2eb82ea7399
Reviewed-on: https://go-review.googlesource.com/c/go/+/614275
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/lib.go