stage2: use %type not @type for libc stubs

Missed a couple places last time so just doing the rest.
This commit is contained in:
Julian Maingot 2021-01-16 17:33:37 -08:00 committed by Andrew Kelley
parent 4c5f69a065
commit 384ccaa27a
2 changed files with 34 additions and 34 deletions

View file

@ -1,105 +1,105 @@
.bss .bss
.weak ___environ .weak ___environ
.type ___environ, @object; .type ___environ, %object;
___environ: ___environ:
.globl __daylight .globl __daylight
.type __daylight, @object; .type __daylight, %object;
__daylight: __daylight:
.globl __environ .globl __environ
.type __environ, @object; .type __environ, %object;
__environ: __environ:
.globl __optpos .globl __optpos
.type __optpos, @object; .type __optpos, %object;
__optpos: __optpos:
.globl __optreset .globl __optreset
.type __optreset, @object; .type __optreset, %object;
__optreset: __optreset:
.globl __progname .globl __progname
.type __progname, @object; .type __progname, %object;
__progname: __progname:
.globl __progname_full .globl __progname_full
.type __progname_full, @object; .type __progname_full, %object;
__progname_full: __progname_full:
.globl __signgam .globl __signgam
.type __signgam, @object; .type __signgam, %object;
__signgam: __signgam:
.globl __stack_chk_guard .globl __stack_chk_guard
.type __stack_chk_guard, @object; .type __stack_chk_guard, %object;
__stack_chk_guard: __stack_chk_guard:
.globl __timezone .globl __timezone
.type __timezone, @object; .type __timezone, %object;
__timezone: __timezone:
.globl __tzname .globl __tzname
.type __tzname, @object; .type __tzname, %object;
__tzname: __tzname:
.weak _environ .weak _environ
.type _environ, @object; .type _environ, %object;
_environ: _environ:
.weak daylight .weak daylight
.type daylight, @object; .type daylight, %object;
daylight: daylight:
.weak environ .weak environ
.type environ, @object; .type environ, %object;
environ: environ:
.globl getdate_err .globl getdate_err
.type getdate_err, @object; .type getdate_err, %object;
getdate_err: getdate_err:
.globl h_errno .globl h_errno
.type h_errno, @object; .type h_errno, %object;
h_errno: h_errno:
.globl optarg .globl optarg
.type optarg, @object; .type optarg, %object;
optarg: optarg:
.globl optopt .globl optopt
.type optopt, @object; .type optopt, %object;
optopt: optopt:
.weak optreset .weak optreset
.type optreset, @object; .type optreset, %object;
optreset: optreset:
.weak program_invocation_name .weak program_invocation_name
.type program_invocation_name, @object; .type program_invocation_name, %object;
program_invocation_name: program_invocation_name:
.weak program_invocation_short_name .weak program_invocation_short_name
.type program_invocation_short_name, @object; .type program_invocation_short_name, %object;
program_invocation_short_name: program_invocation_short_name:
.weak signgam .weak signgam
.type signgam, @object; .type signgam, %object;
signgam: signgam:
.weak timezone .weak timezone
.type timezone, @object; .type timezone, %object;
timezone: timezone:
.weak tzname .weak tzname
.type tzname, @object; .type tzname, %object;
tzname: tzname:
.data .data
.globl _dl_debug_addr .globl _dl_debug_addr
.type _dl_debug_addr, @object; .type _dl_debug_addr, %object;
_dl_debug_addr: _dl_debug_addr:
.globl opterr .globl opterr
.type opterr, @object; .type opterr, %object;
opterr: opterr:
.globl optind .globl optind
.type optind, @object; .type optind, %object;
optind: optind:
.data.rel.ro .data.rel.ro
.globl stderr .globl stderr
.type stderr, @object; .type stderr, %object;
stderr: stderr:
.globl stdin .globl stdin
.type stdin, @object; .type stdin, %object;
stdin: stdin:
.globl stdout .globl stdout
.type stdout, @object; .type stdout, %object;
stdout: stdout:
.rodata .rodata
.globl _ns_flagdata .globl _ns_flagdata
.type _ns_flagdata, @object; .type _ns_flagdata, %object;
_ns_flagdata: _ns_flagdata:
.globl in6addr_any .globl in6addr_any
.type in6addr_any, @object; .type in6addr_any, %object;
in6addr_any: in6addr_any:
.globl in6addr_loopback .globl in6addr_loopback
.type in6addr_loopback, @object; .type in6addr_loopback, %object;
in6addr_loopback: in6addr_loopback:
.text .text
.globl _Exit .globl _Exit

View file

@ -93,7 +93,7 @@ pub fn main() !void {
} }
switch (symbol.type) { 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}), .object => try stdout.print(".type {s}, %object;\n", .{symbol.name}),
.none => {}, .none => {},
} }
if (symbol.protected) if (symbol.protected)