Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 718054

Summary: dev-lang/go: consider enabling PIE by default for go toolchain via USE=pie
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-18 13:55:31 UTC
sys-devel/gcc[pie] generates PIE binaries by default. gccgo also does.

People occasionally manually inject -buildmode=pie into ebuilds to keep consistent with defaults.

WDYT of making dev-lang/go default to PIE execuatbles as well?
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-18 13:58:03 UTC
bug 702598 looks to be similar
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-18 16:16:17 UTC
Youa re right! Closing as a duplicate.

*** This bug has been marked as a duplicate of bug 702598 ***