authorgravatar for julianmaingot@gmail.comJulian Maingot <julianmaingot@gmail.com> 2021-01-16 17:33:37-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-01-18 11:04:33-08:00
log384ccaa27a979f406f41e1617d3c9ef015517fda
treeed7d40873ace4905af05a1648d6e087274f41e70
parent4c5f69a0653f32a049c9c12aa909d04b5a48708c

stage2: use %type not @type for libc stubs

Missed a couple places last time so just doing the rest.

2 files changed, 34 insertions(+), 34 deletions(-)

lib/libc/musl/libc.s+33-33
......@@ -1,105 +1,105 @@
11.bss
22.weak ___environ
3.type ___environ, @object;
3.type ___environ, %object;
44___environ:
55.globl __daylight
6.type __daylight, @object;
6.type __daylight, %object;
77__daylight:
88.globl __environ
9.type __environ, @object;
9.type __environ, %object;
1010__environ:
1111.globl __optpos
12.type __optpos, @object;
12.type __optpos, %object;
1313__optpos:
1414.globl __optreset
15.type __optreset, @object;
15.type __optreset, %object;
1616__optreset:
1717.globl __progname
18.type __progname, @object;
18.type __progname, %object;
1919__progname:
2020.globl __progname_full
21.type __progname_full, @object;
21.type __progname_full, %object;
2222__progname_full:
2323.globl __signgam
24.type __signgam, @object;
24.type __signgam, %object;
2525__signgam:
2626.globl __stack_chk_guard
27.type __stack_chk_guard, @object;
27.type __stack_chk_guard, %object;
2828__stack_chk_guard:
2929.globl __timezone
30.type __timezone, @object;
30.type __timezone, %object;
3131__timezone:
3232.globl __tzname
33.type __tzname, @object;
33.type __tzname, %object;
3434__tzname:
3535.weak _environ
36.type _environ, @object;
36.type _environ, %object;
3737_environ:
3838.weak daylight
39.type daylight, @object;
39.type daylight, %object;
4040daylight:
4141.weak environ
42.type environ, @object;
42.type environ, %object;
4343environ:
4444.globl getdate_err
45.type getdate_err, @object;
45.type getdate_err, %object;
4646getdate_err:
4747.globl h_errno
48.type h_errno, @object;
48.type h_errno, %object;
4949h_errno:
5050.globl optarg
51.type optarg, @object;
51.type optarg, %object;
5252optarg:
5353.globl optopt
54.type optopt, @object;
54.type optopt, %object;
5555optopt:
5656.weak optreset
57.type optreset, @object;
57.type optreset, %object;
5858optreset:
5959.weak program_invocation_name
60.type program_invocation_name, @object;
60.type program_invocation_name, %object;
6161program_invocation_name:
6262.weak program_invocation_short_name
63.type program_invocation_short_name, @object;
63.type program_invocation_short_name, %object;
6464program_invocation_short_name:
6565.weak signgam
66.type signgam, @object;
66.type signgam, %object;
6767signgam:
6868.weak timezone
69.type timezone, @object;
69.type timezone, %object;
7070timezone:
7171.weak tzname
72.type tzname, @object;
72.type tzname, %object;
7373tzname:
7474.data
7575.globl _dl_debug_addr
76.type _dl_debug_addr, @object;
76.type _dl_debug_addr, %object;
7777_dl_debug_addr:
7878.globl opterr
79.type opterr, @object;
79.type opterr, %object;
8080opterr:
8181.globl optind
82.type optind, @object;
82.type optind, %object;
8383optind:
8484.data.rel.ro
8585.globl stderr
86.type stderr, @object;
86.type stderr, %object;
8787stderr:
8888.globl stdin
89.type stdin, @object;
89.type stdin, %object;
9090stdin:
9191.globl stdout
92.type stdout, @object;
92.type stdout, %object;
9393stdout:
9494.rodata
9595.globl _ns_flagdata
96.type _ns_flagdata, @object;
96.type _ns_flagdata, %object;
9797_ns_flagdata:
9898.globl in6addr_any
99.type in6addr_any, @object;
99.type in6addr_any, %object;
100100in6addr_any:
101101.globl in6addr_loopback
102.type in6addr_loopback, @object;
102.type in6addr_loopback, %object;
103103in6addr_loopback:
104104.text
105105.globl _Exit
tools/gen_stubs.zig+1-1
......@@ -93,7 +93,7 @@ pub fn main() !void {
9393 }
9494 switch (symbol.type) {
9595 .function => try stdout.print(".type {s}, %function;\n", .{symbol.name}),
96 .object => try stdout.print(".type {s}, @object;\n", .{symbol.name}),
96 .object => try stdout.print(".type {s}, %object;\n", .{symbol.name}),
9797 .none => {},
9898 }
9999 if (symbol.protected)