From: David Given Date: Mon, 31 Oct 2016 22:21:33 +0000 (+0100) Subject: Correctly mangle labels used in initialisers. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4fa2c94a4a2c6b61570b1294e714ca74be7974c6;p=ack.git Correctly mangle labels used in initialisers. --- 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)