summaryrefslogtreecommitdiff
path: root/utils/tl/span.c
diff options
context:
space:
mode:
authorDavid Boddie <david@boddie.org.uk>2023-04-02 18:24:44 +0200
committerDavid Boddie <david@boddie.org.uk>2023-11-16 16:44:28 +0100
commit691df57aba2063cba34cc3bcf0cea90a54e83e76 (patch)
tree7035b23f6c1d2fb1ef0c7e95dd9d180fe251ae8e /utils/tl/span.c
parentd8023f9f90be42752d6f61a1a436444f0cfad288 (diff)
Enabled assembly of constant strings into the text segment.
Diffstat (limited to 'utils/tl/span.c')
-rw-r--r--utils/tl/span.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/tl/span.c b/utils/tl/span.c
index 8ceaf631..6d5a0443 100644
--- a/utils/tl/span.c
+++ b/utils/tl/span.c
@@ -350,6 +350,7 @@ span(void)
* add strings to text segment
*/
c = rnd(c, 8);
+ INITRODAT = c;
for(i=0; i<NHASH; i++)
for(s = hash[i]; s != S; s = s->link) {
if(s->type != SSTRING)
@@ -358,6 +359,7 @@ span(void)
while(v & 3)
v++;
s->value = c;
+ s->base = -INITDAT; // compensate for assumptions in thumb.c
c += v;
}
}