go: Use -no-pie to build target cgo

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]

(From OE-Core rev: a27d39aebd5966ffffb57c20518381cb06ba8373)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2023-05-24 15:59:48 -07:00
committed by Richard Purdie
parent c3bdaa70e6
commit 3673a43c22

View 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"