stage2: use %type not @type for libc stubs

Apparently ARM uses @ for comments. Everything seems to accept % here
though.
This commit is contained in:
Isaac Freund 2020-12-13 22:12:55 +01:00 committed by Andrew Kelley
parent 481ce7361e
commit 343249efd8
3 changed files with 1667 additions and 1667 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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}:

View File

@ -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 => {},
}