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 @@...@@ -1,105 +1,105 @@
1.bss1.bss
2.weak ___environ2.weak ___environ
3.type ___environ, @object;3.type ___environ, %object;
4___environ:4___environ:
5.globl __daylight5.globl __daylight
6.type __daylight, @object;6.type __daylight, %object;
7__daylight:7__daylight:
8.globl __environ8.globl __environ
9.type __environ, @object;9.type __environ, %object;
10__environ:10__environ:
11.globl __optpos11.globl __optpos
12.type __optpos, @object;12.type __optpos, %object;
13__optpos:13__optpos:
14.globl __optreset14.globl __optreset
15.type __optreset, @object;15.type __optreset, %object;
16__optreset:16__optreset:
17.globl __progname17.globl __progname
18.type __progname, @object;18.type __progname, %object;
19__progname:19__progname:
20.globl __progname_full20.globl __progname_full
21.type __progname_full, @object;21.type __progname_full, %object;
22__progname_full:22__progname_full:
23.globl __signgam23.globl __signgam
24.type __signgam, @object;24.type __signgam, %object;
25__signgam:25__signgam:
26.globl __stack_chk_guard26.globl __stack_chk_guard
27.type __stack_chk_guard, @object;27.type __stack_chk_guard, %object;
28__stack_chk_guard:28__stack_chk_guard:
29.globl __timezone29.globl __timezone
30.type __timezone, @object;30.type __timezone, %object;
31__timezone:31__timezone:
32.globl __tzname32.globl __tzname
33.type __tzname, @object;33.type __tzname, %object;
34__tzname:34__tzname:
35.weak _environ35.weak _environ
36.type _environ, @object;36.type _environ, %object;
37_environ:37_environ:
38.weak daylight38.weak daylight
39.type daylight, @object;39.type daylight, %object;
40daylight:40daylight:
41.weak environ41.weak environ
42.type environ, @object;42.type environ, %object;
43environ:43environ:
44.globl getdate_err44.globl getdate_err
45.type getdate_err, @object;45.type getdate_err, %object;
46getdate_err:46getdate_err:
47.globl h_errno47.globl h_errno
48.type h_errno, @object;48.type h_errno, %object;
49h_errno:49h_errno:
50.globl optarg50.globl optarg
51.type optarg, @object;51.type optarg, %object;
52optarg:52optarg:
53.globl optopt53.globl optopt
54.type optopt, @object;54.type optopt, %object;
55optopt:55optopt:
56.weak optreset56.weak optreset
57.type optreset, @object;57.type optreset, %object;
58optreset:58optreset:
59.weak program_invocation_name59.weak program_invocation_name
60.type program_invocation_name, @object;60.type program_invocation_name, %object;
61program_invocation_name:61program_invocation_name:
62.weak program_invocation_short_name62.weak program_invocation_short_name
63.type program_invocation_short_name, @object;63.type program_invocation_short_name, %object;
64program_invocation_short_name:64program_invocation_short_name:
65.weak signgam65.weak signgam
66.type signgam, @object;66.type signgam, %object;
67signgam:67signgam:
68.weak timezone68.weak timezone
69.type timezone, @object;69.type timezone, %object;
70timezone:70timezone:
71.weak tzname71.weak tzname
72.type tzname, @object;72.type tzname, %object;
73tzname:73tzname:
74.data74.data
75.globl _dl_debug_addr75.globl _dl_debug_addr
76.type _dl_debug_addr, @object;76.type _dl_debug_addr, %object;
77_dl_debug_addr:77_dl_debug_addr:
78.globl opterr78.globl opterr
79.type opterr, @object;79.type opterr, %object;
80opterr:80opterr:
81.globl optind81.globl optind
82.type optind, @object;82.type optind, %object;
83optind:83optind:
84.data.rel.ro84.data.rel.ro
85.globl stderr85.globl stderr
86.type stderr, @object;86.type stderr, %object;
87stderr:87stderr:
88.globl stdin88.globl stdin
89.type stdin, @object;89.type stdin, %object;
90stdin:90stdin:
91.globl stdout91.globl stdout
92.type stdout, @object;92.type stdout, %object;
93stdout:93stdout:
94.rodata94.rodata
95.globl _ns_flagdata95.globl _ns_flagdata
96.type _ns_flagdata, @object;96.type _ns_flagdata, %object;
97_ns_flagdata:97_ns_flagdata:
98.globl in6addr_any98.globl in6addr_any
99.type in6addr_any, @object;99.type in6addr_any, %object;
100in6addr_any:100in6addr_any:
101.globl in6addr_loopback101.globl in6addr_loopback
102.type in6addr_loopback, @object;102.type in6addr_loopback, %object;
103in6addr_loopback:103in6addr_loopback:
104.text104.text
105.globl _Exit105.globl _Exit
tools/gen_stubs.zig+1-1
...@@ -93,7 +93,7 @@ pub fn main() !void {...@@ -93,7 +93,7 @@ pub fn main() !void {
93 }93 }
94 switch (symbol.type) {94 switch (symbol.type) {
95 .function => try stdout.print(".type {s}, %function;\n", .{symbol.name}),95 .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}),
97 .none => {},97 .none => {},
98 }98 }
99 if (symbol.protected)99 if (symbol.protected)