ref: 9fb2001658fb59fa0c7437f856491ef5f4214ebe
parent: 115f7b244088cc2e662710a9d64beddd96b955fa
parent: f109558b0c9281a22159458f1a9986ae7932ed64
author: cinap_lenrek <[email protected]>
date: Mon Jun 19 16:58:44 EDT 2017
merge
--- a/sys/src/cmd/6l/pass.c
+++ b/sys/src/cmd/6l/pass.c
@@ -507,8 +507,10 @@
if(p->as == ATEXT) {
curtext = p;
autoffset = p->to.offset;
- if(autoffset < 0)
+ if(autoffset < 0) {
autoffset = 0;
+ p->to.offset = 0;
+ }
if(autoffset) {
p = appendp(p);
p->as = AADJSP;
--- a/sys/src/cmd/8l/pass.c
+++ b/sys/src/cmd/8l/pass.c
@@ -492,8 +492,10 @@
if(p->as == ATEXT) {
curtext = p;
autoffset = p->to.offset;
- if(autoffset < 0)
+ if(autoffset < 0) {
autoffset = 0;
+ p->to.offset = 0;
+ }
if(autoffset) {
p = appendp(p);
p->as = AADJSP;