From 4fa2c94a4a2c6b61570b1294e714ca74be7974c6 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 31 Oct 2016 23:21:33 +0100 Subject: [PATCH] Correctly mangle labels used in initialisers. --- mach/proto/mcg/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mach/proto/mcg/data.c b/mach/proto/mcg/data.c index 2e27e37ca..cbaa4c3eb 100644 --- a/mach/proto/mcg/data.c +++ b/mach/proto/mcg/data.c @@ -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) -- 2.34.1