Correctly mangle labels used in initialisers.
authorDavid Given <dg@cowlark.com>
Mon, 31 Oct 2016 22:21:33 +0000 (23:21 +0100)
committerDavid Given <dg@cowlark.com>
Mon, 31 Oct 2016 22:21:33 +0000 (23:21 +0100)
mach/proto/mcg/data.c

index 2e27e37..cbaa4c3 100644 (file)
@@ -144,7 +144,8 @@ void data_block(const uint8_t* data, size_t size, bool is_ro)
 void data_offset(const char* label, arith offset, bool is_ro)
 {
        emit_header(is_ro ? SECTION_ROM : SECTION_DATA);
-    fprintf(outputfile, "\t.data%d %s+%lld\n", EM_pointersize, label, offset);
+    fprintf(outputfile, "\t.data%d %s+%lld\n",
+        EM_pointersize, platform_label(label), offset);
 }
 
 void data_bss(arith size, int init)