[clang] Revert "[ASan] Enable Internalization for 'asanrtl.bc' in Driver (#18… (PR #185458)
Amit Kumar Pandey via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 09:58:18 PDT 2026
ampandey-1995 wrote:
I am not sure why enabling internalization has multiple definitions of `__asan_report_*`.
This somehow messes up asan gpu initialization at runtime and now asan reporting is missed.
```
Symbol table '.dynsym' contains 11 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000037020 400 OBJECT GLOBAL PROTECTED 14 da
2: 0000000000001740 64 OBJECT WEAK DEFAULT 7 amdgcn.device.init.kd
3: 0000000000001780 64 OBJECT WEAK DEFAULT 7 amdgcn.device.fini.kd
4: 0000000000037020 512 NOTYPE GLOBAL PROTECTED 14 da__sanitized_padded_global
5: 0000000000001800 64 OBJECT GLOBAL PROTECTED 7 set1() (.kd)
6: 0000000000010b00 300 FUNC GLOBAL PROTECTED 9 set1()
7: 0000000000037220 1 OBJECT GLOBAL DEFAULT 14 __hip_cuid_fdd6966024088432
8: 0000000000037221 1 OBJECT GLOBAL PROTECTED 14 __odr_asan_gen_da
9: 000000000000ac00 216 FUNC WEAK PROTECTED 9 amdgcn.device.init
10: 000000000000ad00 252 FUNC WEAK PROTECTED 9 amdgcn.device.fini
Symbol table '.symtab' contains 199 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.private_seg_size
2: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.num_agpr
3: 0000000000000020 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.num_vgpr
4: 0000000000000036 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.numbered_sgpr
5: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.uses_vcc
6: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.uses_flat_scratch
7: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.has_dyn_sized_stack
8: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.init.has_recursion
9: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.private_seg_size
10: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.num_agpr
11: 0000000000000020 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.num_vgpr
12: 0000000000000036 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.numbered_sgpr
13: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.uses_vcc
14: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.uses_flat_scratch
15: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.has_dyn_sized_stack
16: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS amdgcn.device.fini.has_recursion
17: 0000000000037228 8 OBJECT LOCAL HIDDEN 14 ___asan_globals_registered
18: 0000000000004e00 4416 FUNC LOCAL HIDDEN 9 __asan_free_impl.9
19: 0000000000005f40 1344 FUNC LOCAL HIDDEN 9 __asan_load16_noabort.31
20: 0000000000006480 1364 FUNC LOCAL HIDDEN 9 __asan_load2
21: 00000000000069d4 1364 FUNC LOCAL HIDDEN 9 __asan_load2.35
22: 0000000000006f28 1364 FUNC LOCAL HIDDEN 9 __asan_load2_noabort.37
23: 000000000000747c 1364 FUNC LOCAL HIDDEN 9 __asan_load8.43
24: 00000000000079d0 556 FUNC LOCAL HIDDEN 9 __asan_poison_memory_region
25: 0000000000007bfc 344 FUNC LOCAL HIDDEN 9 __asan_poison_region
26: 0000000000007d54 1300 FUNC LOCAL HIDDEN 9 __asan_report_load16.53
27: 0000000000008268 1300 FUNC LOCAL HIDDEN 9 __asan_report_load2_noabort.61
28: 000000000000877c 1300 FUNC LOCAL HIDDEN 9 __asan_report_load8_noabort.69
29: 0000000000008c90 1296 FUNC LOCAL HIDDEN 9 __asan_report_store16.77
30: 00000000000091a0 1300 FUNC LOCAL HIDDEN 9 __asan_report_store2_noabort.85
31: 00000000000096b4 1308 FUNC LOCAL HIDDEN 9 __asan_report_store_n
32: 0000000000009bd0 1356 FUNC LOCAL HIDDEN 9 __asan_store1.99
33: 000000000000a11c 1364 FUNC LOCAL HIDDEN 9 __asan_store2_noabort.109
34: 000000000000a670 1360 FUNC LOCAL HIDDEN 9 __asan_store8.115
35: 00000000000017c0 3 OBJECT LOCAL HIDDEN 7 ___asan_gen_global
36: 00000000000017c3 46 OBJECT LOCAL HIDDEN 7 ___asan_gen_module
37: 0000000000036fe0 64 OBJECT LOCAL HIDDEN 13 __asan_global_da
38: 0000000000010a24 56 FUNC LOCAL DEFAULT 9 __ockl_get_local_size
39: 0000000000010a5c 16 FUNC LOCAL DEFAULT 9 __ockl_get_group_id
40: 0000000000010a6c 20 FUNC LOCAL DEFAULT 9 __ockl_get_local_id
41: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS set1() (.private_seg_size)
42: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS set1() (.num_agpr)
43: 0000000000000020 0 NOTYPE LOCAL DEFAULT ABS set1() (.num_vgpr)
44: 0000000000000021 0 NOTYPE LOCAL DEFAULT ABS set1() (.numbered_sgpr)
45: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS set1() (.uses_vcc)
46: 0000000000000001 0 NOTYPE LOCAL DEFAULT ABS set1() (.uses_flat_scratch)
47: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS set1() (.has_dyn_sized_stack)
48: 0000000000000000 0 NOTYPE LOCAL DEFAULT ABS set1() (.has_recursion)
49: 000000000000adfc 4416 FUNC LOCAL HIDDEN 9 __asan_free_impl
50: 000000000000bf3c 1364 FUNC LOCAL HIDDEN 9 __asan_load2_noabort
51: 000000000000c490 1364 FUNC LOCAL HIDDEN 9 __asan_load4
52: 000000000000c9e4 1364 FUNC LOCAL HIDDEN 9 __asan_load8_noabort
53: 000000000000cf38 556 FUNC LOCAL HIDDEN 9 __asan_poison_memory_region.125
54: 000000000000d164 1300 FUNC LOCAL HIDDEN 9 __asan_report_load16_noabort
55: 000000000000d678 1300 FUNC LOCAL HIDDEN 9 __asan_report_load4
56: 000000000000db8c 1304 FUNC LOCAL HIDDEN 9 __asan_report_load_n
57: 000000000000e0a4 1300 FUNC LOCAL HIDDEN 9 __asan_report_store16_noabort
58: 000000000000e5b8 1296 FUNC LOCAL HIDDEN 9 __asan_report_store4
59: 000000000000eac8 1296 FUNC LOCAL HIDDEN 9 __asan_report_store4.87
60: 000000000000efd8 1308 FUNC LOCAL HIDDEN 9 __asan_report_store_n.95
61: 000000000000f4f4 1340 FUNC LOCAL HIDDEN 9 __asan_store16
62: 000000000000fa30 1360 FUNC LOCAL HIDDEN 9 __asan_store1_noabort
63: 000000000000ff80 1360 FUNC LOCAL HIDDEN 9 __asan_store4
64: 00000000000104d0 1364 FUNC LOCAL HIDDEN 9 __asan_store8_noabort
65: 0000000000036fe0 0 NOTYPE LOCAL HIDDEN 13 __start_asan_globals
66: 0000000000037020 0 NOTYPE LOCAL HIDDEN 13 __stop_asan_globals
67: 0000000000000000 0 NOTYPE LOCAL HIDDEN 1 __init_array_end
68: 0000000000000000 0 NOTYPE LOCAL HIDDEN 1 __init_array_start
69: 0000000000000000 0 NOTYPE LOCAL HIDDEN 1 __fini_array_end
70: 0000000000000000 0 NOTYPE LOCAL HIDDEN 1 __fini_array_start
71: 0000000000035f00 0 NOTYPE LOCAL HIDDEN 10 _DYNAMIC
72: 000000000001691c 212 FUNC LOCAL HIDDEN 9 asan.module_ctor
73: 0000000000010c2c 1360 FUNC LOCAL HIDDEN 9 __asan_load1
74: 000000000001117c 1364 FUNC LOCAL HIDDEN 9 __asan_load4_noabort
75: 00000000000116d0 7972 FUNC LOCAL HIDDEN 9 __asan_malloc_impl.11
76: 00000000000137f8 216 FUNC LOCAL HIDDEN 9 __asan_register_elf_globals
77: 00000000000135f4 516 FUNC LOCAL HIDDEN 9 __asan_register_globals
78: 00000000000138d0 1300 FUNC LOCAL HIDDEN 9 __asan_report_load1_noabort.57
79: 0000000000013de4 1300 FUNC LOCAL HIDDEN 9 __asan_report_load4_noabort.65
80: 00000000000142f8 1304 FUNC LOCAL HIDDEN 9 __asan_report_load_n_noabort.73
81: 0000000000014810 1300 FUNC LOCAL HIDDEN 9 __asan_report_store1_noabort.81
82: 0000000000014d24 1296 FUNC LOCAL HIDDEN 9 __asan_report_store8
83: 0000000000015234 1344 FUNC LOCAL HIDDEN 9 __asan_store16_noabort
84: 0000000000015774 1360 FUNC LOCAL HIDDEN 9 __asan_store1_noabort.105
85: 0000000000015cc4 1360 FUNC LOCAL HIDDEN 9 __asan_store2
86: 0000000000016214 1364 FUNC LOCAL HIDDEN 9 __asan_store4_noabort
87: 0000000000016768 436 FUNC LOCAL HIDDEN 9 __asan_unpoison_memory_region
88: 0000000000034e28 212 FUNC LOCAL HIDDEN 9 asan.module_dtor
89: 000000000002e948 68 FUNC LOCAL HIDDEN 9 __asan_address_is_poisoned
90: 000000000002e98c 8 FUNC LOCAL HIDDEN 9 __asan_after_dynamic_init
91: 000000000002e994 8 FUNC LOCAL HIDDEN 9 __asan_after_dynamic_init.133
92: 000000000002e99c 8 FUNC LOCAL HIDDEN 9 __asan_before_dynamic_init.135
93: 000000000002e9a4 8 FUNC LOCAL HIDDEN 9 __asan_init
94: 000000000002e9ac 1344 FUNC LOCAL HIDDEN 9 __asan_load16.29
95: 000000000002eeec 1360 FUNC LOCAL HIDDEN 9 __asan_load1_noabort.33
96: 000000000002f5e4 1452 FUNC LOCAL HIDDEN 9 __asan_loadN
97: 000000000002fb90 1452 FUNC LOCAL HIDDEN 9 __asan_loadN_noabort
98: 000000000003013c 3148 FUNC LOCAL HIDDEN 9 __asan_memcpy
99: 0000000000030d88 3516 FUNC LOCAL HIDDEN 9 __asan_memmove
100: 0000000000031b44 1716 FUNC LOCAL HIDDEN 9 __asan_memset
101: 000000000002f43c 424 FUNC LOCAL HIDDEN 9 __asan_region_is_poisoned
102: 00000000000321f8 8 FUNC LOCAL HIDDEN 9 __asan_register_image_globals.141
103: 0000000000032200 1300 FUNC LOCAL HIDDEN 9 __asan_report_load1.51
104: 0000000000032714 1300 FUNC LOCAL HIDDEN 9 __asan_report_load2.59
105: 0000000000032c28 1300 FUNC LOCAL HIDDEN 9 __asan_report_load8.67
106: 000000000003313c 1296 FUNC LOCAL HIDDEN 9 __asan_report_store1.75
107: 000000000003364c 1296 FUNC LOCAL HIDDEN 9 __asan_report_store2.83
108: 0000000000033b5c 1300 FUNC LOCAL HIDDEN 9 __asan_report_store8_noabort
109: 0000000000034070 1456 FUNC LOCAL HIDDEN 9 __asan_storeN
110: 0000000000034620 1452 FUNC LOCAL HIDDEN 9 __asan_storeN_noabort
111: 0000000000034d40 216 FUNC LOCAL HIDDEN 9 __asan_unregister_elf_globals
112: 0000000000034bcc 372 FUNC LOCAL HIDDEN 9 __asan_unregister_globals
113: 0000000000034e18 8 FUNC LOCAL HIDDEN 9 __asan_version_mismatch_check_v8
114: 0000000000034e20 8 FUNC LOCAL HIDDEN 9 __sanitizer_ptr_cmp.147
115: 0000000000022548 68 FUNC LOCAL HIDDEN 9 __asan_address_is_poisoned.123
116: 000000000002258c 8040 FUNC LOCAL HIDDEN 9 __asan_aligned_alloc_impl
117: 00000000000244f4 8 FUNC LOCAL HIDDEN 9 __asan_before_dynamic_init
118: 00000000000244fc 8 FUNC LOCAL HIDDEN 9 __asan_handle_no_return
119: 0000000000024504 8 FUNC LOCAL HIDDEN 9 __asan_init.139
120: 000000000002450c 1360 FUNC LOCAL HIDDEN 9 __asan_load1.27
121: 0000000000024a5c 1364 FUNC LOCAL HIDDEN 9 __asan_load4_noabort.41
122: 0000000000024fb0 1420 FUNC LOCAL HIDDEN 9 __asan_load_cxx_array_cookie.3
123: 000000000002553c 1300 FUNC LOCAL HIDDEN 9 __asan_report_load1
124: 0000000000025a50 1300 FUNC LOCAL HIDDEN 9 __asan_report_load16_noabort.55
125: 0000000000025f64 1300 FUNC LOCAL HIDDEN 9 __asan_report_load4.63
126: 0000000000026478 1304 FUNC LOCAL HIDDEN 9 __asan_report_load_n.71
127: 0000000000026990 1300 FUNC LOCAL HIDDEN 9 __asan_report_store16_noabort.79
128: 0000000000026ea4 1300 FUNC LOCAL HIDDEN 9 __asan_report_store4_noabort
129: 00000000000273b8 1304 FUNC LOCAL HIDDEN 9 __asan_report_store_n_noabort
130: 00000000000278d0 1360 FUNC LOCAL HIDDEN 9 __asan_store2.107
131: 0000000000027e20 1364 FUNC LOCAL HIDDEN 9 __asan_store4_noabort.113
132: 0000000000028374 8 FUNC LOCAL HIDDEN 9 __asan_unregister_image_globals
133: 000000000002837c 8 FUNC LOCAL HIDDEN 9 __asan_version_mismatch_check_v8.145
134: 0000000000028384 8 FUNC LOCAL HIDDEN 9 __sanitizer_ptr_sub
135: 000000000001c830 8040 FUNC LOCAL HIDDEN 9 __asan_aligned_alloc_impl.7
136: 000000000001e798 1344 FUNC LOCAL HIDDEN 9 __asan_load16
137: 000000000001ecd8 1360 FUNC LOCAL HIDDEN 9 __asan_load1_noabort
138: 000000000001f228 1364 FUNC LOCAL HIDDEN 9 __asan_load8
139: 000000000001f980 216 FUNC LOCAL HIDDEN 9 __asan_register_elf_globals.13
140: 000000000001f77c 516 FUNC LOCAL HIDDEN 9 __asan_register_globals.15
141: 000000000001fa58 1300 FUNC LOCAL HIDDEN 9 __asan_report_load2
142: 000000000001ff6c 1300 FUNC LOCAL HIDDEN 9 __asan_report_load8
143: 0000000000020480 1296 FUNC LOCAL HIDDEN 9 __asan_report_store1
144: 0000000000020990 1296 FUNC LOCAL HIDDEN 9 __asan_report_store2
145: 0000000000020ea0 1296 FUNC LOCAL HIDDEN 9 __asan_report_store8.91
146: 00000000000213b0 1344 FUNC LOCAL HIDDEN 9 __asan_store16_noabort.103
147: 00000000000218f0 1364 FUNC LOCAL HIDDEN 9 __asan_store2_noabort
148: 0000000000021e44 1360 FUNC LOCAL HIDDEN 9 __asan_store8
149: 0000000000022394 436 FUNC LOCAL HIDDEN 9 __asan_unpoison_memory_region.131
150: 00000000000169f0 8 FUNC LOCAL HIDDEN 9 __asan_handle_no_return.137
151: 00000000000169f8 1364 FUNC LOCAL HIDDEN 9 __asan_load4.39
152: 0000000000016f4c 1364 FUNC LOCAL HIDDEN 9 __asan_load8_noabort.45
153: 00000000000174a0 1420 FUNC LOCAL HIDDEN 9 __asan_load_cxx_array_cookie
154: 0000000000017a2c 7972 FUNC LOCAL HIDDEN 9 __asan_malloc_impl
155: 0000000000019950 48 FUNC LOCAL HIDDEN 9 __asan_poison_cxx_array_cookie
156: 0000000000019980 48 FUNC LOCAL HIDDEN 9 __asan_poison_cxx_array_cookie.5
157: 00000000000199b0 8 FUNC LOCAL HIDDEN 9 __asan_register_image_globals
158: 00000000000199b8 1300 FUNC LOCAL HIDDEN 9 __asan_report_load1_noabort
159: 0000000000019ecc 1300 FUNC LOCAL HIDDEN 9 __asan_report_load4_noabort
160: 000000000001a3e0 1304 FUNC LOCAL HIDDEN 9 __asan_report_load_n_noabort
161: 000000000001a8f8 1300 FUNC LOCAL HIDDEN 9 __asan_report_store1_noabort
162: 000000000001ae0c 1300 FUNC LOCAL HIDDEN 9 __asan_report_store4_noabort.89
163: 000000000001b320 1304 FUNC LOCAL HIDDEN 9 __asan_report_store_n_noabort.97
164: 000000000001b838 1340 FUNC LOCAL HIDDEN 9 __asan_store16.101
165: 000000000001bd74 1360 FUNC LOCAL HIDDEN 9 __asan_store4.111
166: 000000000001c2c4 1364 FUNC LOCAL HIDDEN 9 __asan_store8_noabort.117
167: 000000000001c818 8 FUNC LOCAL HIDDEN 9 __asan_unregister_image_globals.143
168: 000000000001c820 8 FUNC LOCAL HIDDEN 9 __sanitizer_ptr_cmp
169: 000000000001c828 8 FUNC LOCAL HIDDEN 9 __sanitizer_ptr_sub.149
170: 000000000002838c 1344 FUNC LOCAL HIDDEN 9 __asan_load16_noabort
171: 0000000000028a74 1452 FUNC LOCAL HIDDEN 9 __asan_loadN.47
172: 0000000000029020 1452 FUNC LOCAL HIDDEN 9 __asan_loadN_noabort.49
173: 00000000000295cc 3148 FUNC LOCAL HIDDEN 9 __asan_memcpy.21
174: 000000000002a218 3516 FUNC LOCAL HIDDEN 9 __asan_memmove.23
175: 000000000002afd4 1716 FUNC LOCAL HIDDEN 9 __asan_memset.25
176: 000000000002b688 344 FUNC LOCAL HIDDEN 9 __asan_poison_region.127
177: 00000000000288cc 424 FUNC LOCAL HIDDEN 9 __asan_region_is_poisoned.129
178: 000000000002b7e0 1300 FUNC LOCAL HIDDEN 9 __asan_report_load16
179: 000000000002bcf4 1300 FUNC LOCAL HIDDEN 9 __asan_report_load2_noabort
180: 000000000002c208 1300 FUNC LOCAL HIDDEN 9 __asan_report_load8_noabort
181: 000000000002c71c 1296 FUNC LOCAL HIDDEN 9 __asan_report_store16
182: 000000000002cc2c 1300 FUNC LOCAL HIDDEN 9 __asan_report_store2_noabort
183: 000000000002d140 1300 FUNC LOCAL HIDDEN 9 __asan_report_store8_noabort.93
184: 000000000002d654 1356 FUNC LOCAL HIDDEN 9 __asan_store1
185: 000000000002dba0 1456 FUNC LOCAL HIDDEN 9 __asan_storeN.119
186: 000000000002e150 1452 FUNC LOCAL HIDDEN 9 __asan_storeN_noabort.121
187: 000000000002e870 216 FUNC LOCAL HIDDEN 9 __asan_unregister_elf_globals.17
188: 000000000002e6fc 372 FUNC LOCAL HIDDEN 9 __asan_unregister_globals.19
189: 0000000000010b00 300 FUNC GLOBAL PROTECTED 9 set1()
190: 0000000000037020 400 OBJECT GLOBAL PROTECTED 14 da
191: 0000000000037220 1 OBJECT GLOBAL DEFAULT 14 __hip_cuid_fdd6966024088432
192: 0000000000037221 1 OBJECT GLOBAL PROTECTED 14 __odr_asan_gen_da
193: 000000000000ac00 216 FUNC WEAK PROTECTED 9 amdgcn.device.init
194: 0000000000001740 64 OBJECT WEAK DEFAULT 7 amdgcn.device.init.kd
195: 000000000000ad00 252 FUNC WEAK PROTECTED 9 amdgcn.device.fini
196: 0000000000001780 64 OBJECT WEAK DEFAULT 7 amdgcn.device.fini.kd
197: 0000000000037020 512 NOTYPE GLOBAL PROTECTED 14 da__sanitized_padded_global
198: 0000000000001800 64 OBJECT GLOBAL PROTECTED 7 set1() (.kd)
```
https://github.com/llvm/llvm-project/pull/185458
More information about the cfe-commits
mailing list