Skip to contentSkip to conversation

go: Use -no-pie to build target cgo

PATCH New Khem Raj 1 participant 1 message May 24, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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]

---
 meta/recipes-devtools/go/go_1.20.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/go/go_1.20.4.bb +1 -1
index 587ee55944c..46f5fbc6be9 100644
@@ -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"
Signature · 1 line
2.40.1