diff options
| author | Russ Cox <rsc@golang.org> | 2014-10-14 23:25:12 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-10-14 23:25:12 -0400 |
| commit | 5e6bd29c2c522bf55d12bdd2c63c7a06b761617e (patch) | |
| tree | 2c4c40d53aaf5dd4a582b0e39a239952f80019b9 /include | |
| parent | 4f80b50e235dd6e7637cf1b15f450d5c50d5ba9f (diff) | |
| download | go-5e6bd29c2c522bf55d12bdd2c63c7a06b761617e.tar.xz | |
liblink: require DATA lines to be ordered by offset, with no overlap
The assembler could give a better error, but this one
is good enough for now.
Fixes #8880.
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/153610043
Diffstat (limited to 'include')
| -rw-r--r-- | include/link.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h index 845f9338d9..05e117c87e 100644 --- a/include/link.h +++ b/include/link.h @@ -373,6 +373,7 @@ struct Link char* trimpath; char* goroot; char* goroot_final; + int32 enforce_data_order; // for use by assembler // hash table of all symbols LSym* hash[LINKHASH]; @@ -542,6 +543,7 @@ vlong adduint8(Link *ctxt, LSym *s, uint8 v); vlong adduintxx(Link *ctxt, LSym *s, uint64 v, int wid); void mangle(char *file); void savedata(Link *ctxt, LSym *s, Prog *p, char *pn); +void savedata1(Link *ctxt, LSym *s, Prog *p, char *pn, int enforce_order); vlong setaddr(Link *ctxt, LSym *s, vlong off, LSym *t); vlong setaddrplus(Link *ctxt, LSym *s, vlong off, LSym *t, vlong add); vlong setuint16(Link *ctxt, LSym *s, vlong r, uint16 v); |
