From 343249efd845c30fbdcb18a37ebb356ab19da742 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 13 Dec 2020 22:12:55 +0100 Subject: stage2: use %type not @type for libc stubs Apparently ARM uses @ for comments. Everything seems to accept % here though. --- src/glibc.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/glibc.zig') diff --git a/src/glibc.zig b/src/glibc.zig index c704441b6b..df72ccb471 100644 --- a/src/glibc.zig +++ b/src/glibc.zig @@ -811,7 +811,7 @@ pub fn buildSharedObjects(comp: *Compilation) !void { while (ver_i < ver_list.len) : (ver_i += 1) { // Example: // .globl _Exit_2_2_5 - // .type _Exit_2_2_5, @function; + // .type _Exit_2_2_5, %function; // .symver _Exit_2_2_5, _Exit@@GLIBC_2.2.5 // .hidden _Exit_2_2_5 // _Exit_2_2_5: @@ -830,7 +830,7 @@ pub fn buildSharedObjects(comp: *Compilation) !void { ); try zig_body.writer().print( \\.globl {s} - \\.type {s}, @function; + \\.type {s}, %function; \\.symver {s}, {s}{s}GLIBC_{d}.{d} \\.hidden {s} \\{s}: @@ -854,7 +854,7 @@ pub fn buildSharedObjects(comp: *Compilation) !void { ); try zig_body.writer().print( \\.globl {s} - \\.type {s}, @function; + \\.type {s}, %function; \\.symver {s}, {s}{s}GLIBC_{d}.{d}.{d} \\.hidden {s} \\{s}: -- cgit v1.2.3