similarity index 91%
rename from meta/recipes-devtools/go/go-1.27.3.inc
rename to meta/recipes-devtools/go/go-1.27.4.inc
@@ -17,4 +17,4 @@ SRC_URI += "\
file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \
file://0011-internal-cgrouptest-skip-when-cpu.max-is-not-availab.patch \
"
-SRC_URI[main.sha256sum] = "6e7749035cf360f06b2575d162ea79df9fda8ef671889e5c375f8e50777f26bb"
+SRC_URI[main.sha256sum] = "73cfb8571aec0c01177687db87163d46aa20e9779672772891aa17654d9a6099"
similarity index 80%
rename from meta/recipes-devtools/go/go-binary-native_1.27.3.bb
rename to meta/recipes-devtools/go/go-binary-native_1.27.4.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
# Checksums available at https://go.dev/dl/
SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "65efbc80fdc1fa2cd2631cad5b481777a68e8725f34e89f50fc6ac714e379b40"
-SRC_URI[go_linux_arm64.sha256sum] = "a06e99309dbcbdca1a8ccd2282c3ee146e55930886e26b4f1193269587165f49"
-SRC_URI[go_linux_ppc64le.sha256sum] = "f180f01943865b7942ab3b4acbab6da6f0f669b61da999d004d16c537a49f7b5"
+SRC_URI[go_linux_amd64.sha256sum] = "7226736c2339719cda28fbf3a54d71aa63bcefe376e98cef00034268dab24840"
+SRC_URI[go_linux_arm64.sha256sum] = "3392582988a273a87ab5043ee1b2c9c17a2c3c00580bf9326c47a2e0aaaeac92"
+SRC_URI[go_linux_ppc64le.sha256sum] = "f508314644fa6f466d1935f8a34f01e7980092a4730bfb9d7fa3ffde81910d20"
UPSTREAM_CHECK_URI = "https://golang.org/dl/"
UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.27.3.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.27.4.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.27.3.bb
rename to meta/recipes-devtools/go/go-cross_1.27.4.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.27.3.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.27.4.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.27.3.bb
rename to meta/recipes-devtools/go/go-runtime_1.27.4.bb
@@ -108,7 +108,7 @@ index 8dcf324529f5..617b7ece73f0 100644
}
// Configuration specific to compiler toolchain.
-@@ -2839,8 +2841,25 @@ func envList(key, def string) []string {
+@@ -2845,8 +2847,25 @@ func envList(key, def string) []string {
return args
}
@@ -135,9 +135,9 @@ index 8dcf324529f5..617b7ece73f0 100644
if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {
return
}
-@@ -2856,6 +2875,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
- if ldflags, err = buildFlags("LDFLAGS", DefaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil {
- return
+@@ -2867,6 +2886,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
+ return
+ }
}
+ if filtered {
+ cppflags = filterCompilerFlags(cppflags, false)
@@ -149,7 +149,7 @@ index 8dcf324529f5..617b7ece73f0 100644
return
}
-@@ -2944,7 +2970,7 @@ func (b *Builder) runCgo(ctx context.Context, a *Action) error {
+@@ -2955,7 +2981,7 @@ func (b *Builder) runCgo(ctx context.Context, a *Action) error {
cgoExe := base.Tool("cgo")
cgofiles = mkAbsFiles(p.Dir, cgofiles)
@@ -158,7 +158,7 @@ index 8dcf324529f5..617b7ece73f0 100644
if err != nil {
return err
}
-@@ -3502,7 +3528,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx
+@@ -3523,7 +3549,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx
p := a.Package
sh := b.Shell(a)
@@ -94,7 +94,7 @@ index 617b7ece73f0..46c0712c5bd0 100644
if err := sh.Mkdir(buildAction.Objdir); err != nil {
return nil, err
}
-@@ -1923,6 +1940,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
+@@ -1929,6 +1946,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
return err
}
@@ -18,7 +18,7 @@ diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
index 46c0712c5bd0..e7c0459ee4c0 100644
--- a/src/cmd/go/internal/work/exec.go
+++ b/src/cmd/go/internal/work/exec.go
-@@ -1598,6 +1598,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
+@@ -1604,6 +1604,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
return h.Sum()
}
@@ -48,7 +48,7 @@ index 46c0712c5bd0..e7c0459ee4c0 100644
// printLinkerConfig prints the linker config into the hash h,
// as part of the computation of a linker-related action ID.
func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
-@@ -1608,7 +1631,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
+@@ -1614,7 +1637,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) {
case "gc":
fmt.Fprintf(h, "link %s %q %s\n", b.toolID("link"), forcedLdflags, ldBuildmode)
if p != nil {
@@ -29,7 +29,7 @@ diff --git a/src/cmd/go/internal/work/gc.go b/src/cmd/go/internal/work/gc.go
index 49b26e15609b..7c0d2ac9e0f0 100644
--- a/src/cmd/go/internal/work/gc.go
+++ b/src/cmd/go/internal/work/gc.go
-@@ -721,6 +721,12 @@ func (gcToolchain) ldShared(b *Builder, root *Action, toplevelactions []*Action,
+@@ -725,6 +725,12 @@ func (gcToolchain) ldShared(b *Builder, root *Action, toplevelactions []*Action,
// the output file path is recorded in the .gnu.version_d section.
dir, targetPath := filepath.Split(targetPath)
similarity index 100%
rename from meta/recipes-devtools/go/go_1.27.3.bb
rename to meta/recipes-devtools/go/go_1.27.4.bb