]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
go: Use -no-pie to build target cgo
authorKhem Raj <raj.khem@gmail.com>
Wed, 24 May 2023 22:59:48 +0000 (15:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2023 11:35:37 +0000 (12:35 +0100)
Fixes
go: ELF binary /usr/lib/go/pkg/tool/linux_arm64/pprof has relocations in .text
go: ELF binary /usr/lib/go/bin/go has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/go/go_1.20.4.bb

index 587ee55944cca31b75cd2cfbe3ed85044b42e528..46f5fbc6be9d7221e58f50e156834e544e2720cd 100644 (file)
@@ -3,7 +3,7 @@ require go-target.inc
 
 inherit linuxloader
 
-CGO_LDFLAGS:append:mips = " -no-pie"
+CGO_LDFLAGS:append = " -no-pie"
 
 export GO_LDSO = "${@get_linuxloader(d)}"
 export CC_FOR_TARGET = "gcc"