File tree 3 files changed +5
-4
lines changed 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 87
87
instead of $GOROOT/pkg/$GOOS_$GOARCH.
88
88
-k symbol
89
89
Set field tracking symbol. Use this flag when GOEXPERIMENT=fieldtrack is set.
90
- -relro
91
- Enable RELRO (default true).
90
+ -bindnow
91
+ When linking externally and marking variables read-only after relocation, also require
92
+ immediate function binding (default true)
92
93
-libgcc file
93
94
Set name of compiler support library.
94
95
This is only used in internal link mode.
Original file line number Diff line number Diff line change @@ -1408,7 +1408,7 @@ func (ctxt *Link) hostlink() {
1408
1408
addRELROargs := func (argv []string ) []string {
1409
1409
relro := "-Wl,-z,relro"
1410
1410
// Enable Full RELRO
1411
- if * FlagRelro {
1411
+ if * FlagBindNow {
1412
1412
relro += ",-z,now"
1413
1413
}
1414
1414
argv = append (argv , relro )
Original file line number Diff line number Diff line change 95
95
FlagDebugTextSize = flag .Int ("debugtextsize" , 0 , "debug text section max size" )
96
96
flagDebugNosplit = flag .Bool ("debugnosplit" , false , "dump nosplit call graph" )
97
97
FlagStrictDups = flag .Int ("strictdups" , 0 , "sanity check duplicate symbol contents during object file reading (1=warn 2=err)." )
98
- FlagRelro = flag .Bool ("relro " , true , "enable RELRO for buildmode=pie " )
98
+ FlagBindNow = flag .Bool ("bindnow " , true , "bind function calls when linking externally " )
99
99
FlagRound = flag .Int ("R" , - 1 , "set address rounding `quantum`" )
100
100
FlagTextAddr = flag .Int64 ("T" , - 1 , "set text segment `address`" )
101
101
flagEntrySymbol = flag .String ("E" , "" , "set `entry` symbol name" )
You can’t perform that action at this time.
0 commit comments