aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-12-13 22:12:55 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-12-13 23:19:23 -0500
commit343249efd845c30fbdcb18a37ebb356ab19da742 (patch)
tree31f89db9c20db11da174a2a8e22b9c43a6b80b04 /src
parent481ce7361e075138e06bffff8c68ce8bf8c8eac3 (diff)
downloadzig-343249efd845c30fbdcb18a37ebb356ab19da742.tar.gz
zig-343249efd845c30fbdcb18a37ebb356ab19da742.zip
stage2: use %type not @type for libc stubs
Apparently ARM uses @ for comments. Everything seems to accept % here though.
Diffstat (limited to 'src')
-rw-r--r--src/glibc.zig6
1 files changed, 3 insertions, 3 deletions
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}: