diff options
| author | Russ Cox <rsc@golang.org> | 2014-04-14 15:54:20 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-04-14 15:54:20 -0400 |
| commit | 8d39e55c6516be5ee3267b8ce101b324a4f09986 (patch) | |
| tree | acc342d354cf6456d4cf9b60afea3fc0a0547979 /src/liblink/obj6.c | |
| parent | b53bb2cae512ce4abbc1587a903171a9da6201cf (diff) | |
| download | go-8d39e55c6516be5ee3267b8ce101b324a4f09986.tar.xz | |
liblink: remove arch-specific constants from file format
The relocation and automatic variable types were using
arch-specific numbers. Introduce portable enumerations
instead.
To the best of my knowledge, these are the only arch-specific
bits left in the new object file format.
Remove now, before Go 1.3, because file formats are forever.
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/87670044
Diffstat (limited to 'src/liblink/obj6.c')
| -rw-r--r-- | src/liblink/obj6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liblink/obj6.c b/src/liblink/obj6.c index 6cfa67f09e..b4329e8862 100644 --- a/src/liblink/obj6.c +++ b/src/liblink/obj6.c @@ -1121,14 +1121,14 @@ LinkArch linkamd64 = { .regsize = 8, .D_ADDR = D_ADDR, + .D_AUTO = D_AUTO, .D_BRANCH = D_BRANCH, .D_CONST = D_CONST, .D_EXTERN = D_EXTERN, .D_FCONST = D_FCONST, .D_NONE = D_NONE, - .D_PCREL = D_PCREL, + .D_PARAM = D_PARAM, .D_SCONST = D_SCONST, - .D_SIZE = D_SIZE, .D_STATIC = D_STATIC, .ACALL = ACALL, @@ -1166,14 +1166,14 @@ LinkArch linkamd64p32 = { .regsize = 8, .D_ADDR = D_ADDR, + .D_AUTO = D_AUTO, .D_BRANCH = D_BRANCH, .D_CONST = D_CONST, .D_EXTERN = D_EXTERN, .D_FCONST = D_FCONST, .D_NONE = D_NONE, - .D_PCREL = D_PCREL, + .D_PARAM = D_PARAM, .D_SCONST = D_SCONST, - .D_SIZE = D_SIZE, .D_STATIC = D_STATIC, .ACALL = ACALL, |
