Skip to content

Commit 48b651c

Browse files
committed
Harmonize implementation of plan9 arm64 obj with other archs
1 parent 2b97fe3 commit 48b651c

File tree

1 file changed

+1
-5
lines changed
  • src/cmd/link/internal/arm64

1 file changed

+1
-5
lines changed

src/cmd/link/internal/arm64/obj.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,11 @@ func archinit(ctxt *ld.Link) {
8989

9090
case objabi.Hplan9: /* plan 9 */
9191
ld.HEADR = 32 + 8
92-
93-
if *ld.FlagTextAddr == -1 {
94-
*ld.FlagTextAddr = 0x10000 + int64(ld.HEADR)
95-
}
9692
if *ld.FlagRound == -1 {
9793
*ld.FlagRound = 0x10000
9894
}
9995
if *ld.FlagTextAddr == -1 {
100-
*ld.FlagTextAddr = ld.Rnd(4096, *ld.FlagRound) + int64(ld.HEADR)
96+
*ld.FlagTextAddr = ld.Rnd(0x10000, *ld.FlagRound) + int64(ld.HEADR)
10197
}
10298

10399
case objabi.Hlinux, /* arm64 elf */

0 commit comments

Comments
 (0)