]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/5l, cmd/6l, cmd/8l: put floating point numbers in .rodata section
authorShenghou Ma <minux.ma@gmail.com>
Mon, 22 Oct 2012 16:59:53 +0000 (00:59 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 22 Oct 2012 16:59:53 +0000 (00:59 +0800)
R=golang-dev, rsc
CC=0xe2.0x9a.0x9b, golang-dev
https://golang.org/cl/6742063

src/cmd/5l/obj.c
src/cmd/6l/obj.c
src/cmd/8l/obj.c

index bf2978d05e7160bd0e40e10536b7d95af759de40..4c2603d28a06bc88fdb26aa3200032696781087e 100644 (file)
@@ -688,7 +688,7 @@ loop:
                        sprint(literal, "$%ux", ieeedtof(&p->from.ieee));
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SBSS;
+                               s->type = SRODATA;
                                adduint32(s, ieeedtof(&p->from.ieee));
                                s->reachable = 0;
                        }
@@ -710,7 +710,7 @@ loop:
                                p->from.ieee.l, p->from.ieee.h);
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SBSS;
+                               s->type = SRODATA;
                                adduint32(s, p->from.ieee.l);
                                adduint32(s, p->from.ieee.h);
                                s->reachable = 0;
index 5987310f9514ef21df448167a80ecdce7a0fe260..dad217cc86fb476dedbacf5dff1cb79c295b938d 100644 (file)
@@ -682,7 +682,7 @@ loop:
                        sprint(literal, "$%ux", ieeedtof(&p->from.ieee));
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SDATA;
+                               s->type = SRODATA;
                                adduint32(s, ieeedtof(&p->from.ieee));
                                s->reachable = 0;
                        }
@@ -716,7 +716,7 @@ loop:
                                p->from.ieee.l, p->from.ieee.h);
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SDATA;
+                               s->type = SRODATA;
                                adduint32(s, p->from.ieee.l);
                                adduint32(s, p->from.ieee.h);
                                s->reachable = 0;
index 773a6ddfb16ab7934c24d9378c529aa8e48ca641..19e351d998569e69b113de43379687c63e412daf 100644 (file)
@@ -675,7 +675,7 @@ loop:
                        sprint(literal, "$%ux", ieeedtof(&p->from.ieee));
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SDATA;
+                               s->type = SRODATA;
                                adduint32(s, ieeedtof(&p->from.ieee));
                                s->reachable = 0;
                        }
@@ -709,7 +709,7 @@ loop:
                                p->from.ieee.l, p->from.ieee.h);
                        s = lookup(literal, 0);
                        if(s->type == 0) {
-                               s->type = SDATA;
+                               s->type = SRODATA;
                                adduint32(s, p->from.ieee.l);
                                adduint32(s, p->from.ieee.h);
                                s->reachable = 0;