aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/amd64/obj.go
diff options
context:
space:
mode:
authorJeremy Faller <jeremy@golang.org>2020-05-21 20:20:26 -0400
committerJeremy Faller <jeremy@golang.org>2020-05-26 17:55:53 +0000
commitebdb15f7f8db391bfb8282e10f7759ca0aec5a4f (patch)
tree060795f204406146fd36cd1a3f40457f53c72e58 /src/cmd/link/internal/amd64/obj.go
parent13c1401b8ec709a7a64b321c953501475b4e6b5a (diff)
downloadgo-ebdb15f7f8db391bfb8282e10f7759ca0aec5a4f.tar.xz
[dev.link] cmd/link: move asmb2 plan 9 architecture code out of architectures
Change-Id: I7a8f8edc4511e3ae0c44ec5017167f14d4c60755 Reviewed-on: https://go-review.googlesource.com/c/go/+/234891 Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/link/internal/amd64/obj.go')
-rw-r--r--src/cmd/link/internal/amd64/obj.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/link/internal/amd64/obj.go b/src/cmd/link/internal/amd64/obj.go
index 90de67d086..924ce58aa3 100644
--- a/src/cmd/link/internal/amd64/obj.go
+++ b/src/cmd/link/internal/amd64/obj.go
@@ -53,11 +53,13 @@ func Init() (*sys.Arch, ld.Arch) {
// 0xCC is INT $3 - breakpoint instruction
CodePad: []byte{0xCC},
+ Plan9Magic: uint32(4*26*26 + 7),
+ Plan9_64Bit: true,
+
Adddynrel: adddynrel,
Archinit: archinit,
Archreloc: archreloc,
Archrelocvariant: archrelocvariant,
- Asmb2: asmb2,
Elfreloc1: elfreloc1,
Elfsetupplt: elfsetupplt,
Gentext: gentext,