ref: 0ef486b8fa59bb0aa15d74fbe817c158cf844a41
parent: 8f2658dda5cae63ee65c21b81cdad9f104c807b4
author: Jacob Moody <moody@posixcafe.org>
date: Sat Apr 6 20:01:30 EDT 2024
9l: do consize check for SB relative as well
--- a/sys/src/cmd/9l/span.c
+++ b/sys/src/cmd/9l/span.c
@@ -307,7 +307,7 @@
}
if(s->type == STEXT || s->type == SLEAF || s->type == SUNDEF) {
instoffset = s->value + a->offset;
- return C_LCON;
+ goto consize;
}
if(s->type == SCONST) {
instoffset = s->value + a->offset;
@@ -323,17 +323,7 @@
instoffset = s->value + a->offset + INITDAT;
if(dlm)
return C_LCON;
- /* not sure why this barfs */
- return C_LCON;
- /*
- if(instoffset == 0)
- return C_ZCON;
- if(instoffset >= -0x8000 && instoffset <= 0xffff)
- return C_SCON;
- if((instoffset & 0xffff) == 0)
- return C_UCON;
- return C_LCON;
- */
+ goto consize;
case D_AUTO:
instoffset = autosize + a->offset;
--
⑨