mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
liblink, cmd/dist, cmd/5l: introduce %^ and move C_* constants.
The helps certain diagnostics and also removed duplicated enums as a side effect. LGTM=dave, rsc R=rsc, dave CC=golang-codereviews https://golang.org/cl/115060044
This commit is contained in:
parent
ae027f52fe
commit
d69d0fe92b
6 changed files with 96 additions and 97 deletions
|
|
@ -107,7 +107,7 @@ struct Prog
|
|||
uchar back; // 6l, 8l
|
||||
uchar ft; /* 6l, 8l oclass cache */
|
||||
uchar tt; // 6l, 8l
|
||||
uchar optab; // 5l
|
||||
uint16 optab; // 5l
|
||||
uchar isize; // 6l, 8l
|
||||
|
||||
char width; /* fake for DATA */
|
||||
|
|
@ -405,7 +405,7 @@ struct Link
|
|||
int asmode;
|
||||
uchar* andptr;
|
||||
uchar and[100];
|
||||
int32 instoffset;
|
||||
int64 instoffset;
|
||||
int32 autosize;
|
||||
int32 armsize;
|
||||
|
||||
|
|
@ -608,6 +608,8 @@ extern char* anames5[];
|
|||
extern char* anames6[];
|
||||
extern char* anames8[];
|
||||
|
||||
extern char* cnames5[];
|
||||
|
||||
extern LinkArch link386;
|
||||
extern LinkArch linkamd64;
|
||||
extern LinkArch linkamd64p32;
|
||||
|
|
@ -618,6 +620,7 @@ extern LinkArch linkarm;
|
|||
#pragma varargck type "lD" Addr*
|
||||
#pragma varargck type "P" Prog*
|
||||
#pragma varargck type "R" int
|
||||
#pragma varargck type "^" int
|
||||
|
||||
// TODO(ality): remove this workaround.
|
||||
// It's here because Pconv in liblink/list?.c references %L.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue