aboutsummaryrefslogtreecommitdiff
path: root/src/liblink/obj5.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-04-14 15:54:20 -0400
committerRuss Cox <rsc@golang.org>2014-04-14 15:54:20 -0400
commit8d39e55c6516be5ee3267b8ce101b324a4f09986 (patch)
treeacc342d354cf6456d4cf9b60afea3fc0a0547979 /src/liblink/obj5.c
parentb53bb2cae512ce4abbc1587a903171a9da6201cf (diff)
downloadgo-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/obj5.c')
-rw-r--r--src/liblink/obj5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblink/obj5.c b/src/liblink/obj5.c
index 96d7aa052d..1b1c7df5fe 100644
--- a/src/liblink/obj5.c
+++ b/src/liblink/obj5.c
@@ -1039,14 +1039,14 @@ LinkArch linkarm = {
.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 = ABL,