mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: use %type not @type for libc stubs
Apparently ARM uses @ for comments. Everything seems to accept % here though.
This commit is contained in:
parent
481ce7361e
commit
343249efd8
3326
lib/libc/musl/libc.s
3326
lib/libc/musl/libc.s
File diff suppressed because it is too large
Load Diff
@ -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}:
|
||||
|
||||
@ -92,7 +92,7 @@ pub fn main() !void {
|
||||
.weak => try stdout.print(".weak {s}\n", .{symbol.name}),
|
||||
}
|
||||
switch (symbol.type) {
|
||||
.function => try stdout.print(".type {s}, @function;\n", .{symbol.name}),
|
||||
.function => try stdout.print(".type {s}, %function;\n", .{symbol.name}),
|
||||
.object => try stdout.print(".type {s}, @object;\n", .{symbol.name}),
|
||||
.none => {},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user