mirror of
https://github.com/golang/go
synced 2024-11-18 14:34:39 -07:00
cmd/link: use HEADR to define FlagTextAddr (cosmetic change)
This cosmetic change defines ld.FlagTextAddr using ld.HEADR in the Plan 9 cases, like it is done for other operating systems. Change-Id: Ic929c1c437f25661058682cf3e159f0b16cdc538 Reviewed-on: https://go-review.googlesource.com/30912 Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
8fc9c50496
commit
9d36ab222d
@ -80,7 +80,7 @@ func archinit(ctxt *ld.Link) {
|
|||||||
ld.HEADR = 32
|
ld.HEADR = 32
|
||||||
|
|
||||||
if *ld.FlagTextAddr == -1 {
|
if *ld.FlagTextAddr == -1 {
|
||||||
*ld.FlagTextAddr = 4128
|
*ld.FlagTextAddr = 4096 + int64(ld.HEADR)
|
||||||
}
|
}
|
||||||
if *ld.FlagDataAddr == -1 {
|
if *ld.FlagDataAddr == -1 {
|
||||||
*ld.FlagDataAddr = 0
|
*ld.FlagDataAddr = 0
|
||||||
|
@ -79,7 +79,7 @@ func archinit(ctxt *ld.Link) {
|
|||||||
ld.HEADR = 32
|
ld.HEADR = 32
|
||||||
|
|
||||||
if *ld.FlagTextAddr == -1 {
|
if *ld.FlagTextAddr == -1 {
|
||||||
*ld.FlagTextAddr = 4096 + 32
|
*ld.FlagTextAddr = 4096 + int64(ld.HEADR)
|
||||||
}
|
}
|
||||||
if *ld.FlagDataAddr == -1 {
|
if *ld.FlagDataAddr == -1 {
|
||||||
*ld.FlagDataAddr = 0
|
*ld.FlagDataAddr = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user