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 | 601416627d7e4d21399144e43ca539707badbf61 (patch) | |
tree | 37368e97beec79dee773662ab08335ffd9d6772b /src/cmd/5a/lex.c | |
parent | f617e5520bbfe677fed06a1fd2bfedd5ef61a5ef (diff) | |
download | go-601416627d7e4d21399144e43ca539707badbf61.tar.gz |
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 issue 8880.
LGTM=r
R=r
CC=golang-codereviews
https://codereview.appspot.com/153610043
Diffstat (limited to 'src/cmd/5a/lex.c')
-rw-r--r-- | src/cmd/5a/lex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/5a/lex.c b/src/cmd/5a/lex.c index 84a17d155..9c6970947 100644 --- a/src/cmd/5a/lex.c +++ b/src/cmd/5a/lex.c @@ -85,6 +85,7 @@ main(int argc, char *argv[]) ctxt = linknew(&linkarm); ctxt->diag = yyerror; ctxt->bso = &bstdout; + ctxt->enforce_data_order = 1; Binit(&bstdout, 1, OWRITE); listinit5(); fmtinstall('L', Lconv); |