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 | e8f7d40d36ebd0302f979efce335b531d67c7f3d (patch) | |
tree | 5c77311f9f013dcd93f6e07e7ced2b13ee2aab03 /src/liblink/obj8.c | |
parent | ea39a747252398dd95baa554526c3801e928d075 (diff) | |
download | go-e8f7d40d36ebd0302f979efce335b531d67c7f3d.tar.gz |
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://codereview.appspot.com/87670044
Diffstat (limited to 'src/liblink/obj8.c')
-rw-r--r-- | src/liblink/obj8.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblink/obj8.c b/src/liblink/obj8.c index 6e40d04a5..d36db8470 100644 --- a/src/liblink/obj8.c +++ b/src/liblink/obj8.c @@ -875,14 +875,14 @@ LinkArch link386 = { .regsize = 4, .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, |