1 ; RUN: opt < %s -asan -asan-module -S | FileCheck %s
3 ; All of these globals should pass through uninstrumented because of their
4 ; custom section name. The .CRT section is the standard way to register custom
5 ; initializers, and the ATL uses the ATL section to register other stuff.
6 ; Either way, if the section has a '$' character, it is probably participating
7 ; in section sorting, and we should probably not put a redzone around it.
10 source_filename = "t.c"
11 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
12 target triple = "x86_64-pc-windows-msvc19.14.26430"
14 $__pobjMapEntryFirst = comdat any
15 $__pobjMapEntryMiddle = comdat any
16 $__pobjMapEntryLast = comdat any
17 $__crt_init_begin = comdat any
18 $__crt_init_callback = comdat any
19 $__crt_init_end = comdat any
21 @__pobjMapEntryFirst = weak_odr dso_local constant i8* null, section "ATL$__a", comdat, align 8
22 @__pobjMapEntryMiddle = weak_odr dso_local constant i8* null, section "ATL$__m", comdat, align 8
23 @__pobjMapEntryLast = weak_odr dso_local constant i8* null, section "ATL$__z", comdat, align 8
24 @__crt_init_begin = weak_odr dso_local constant i8* null, section ".CRT$XCA", comdat, align 8
25 @__crt_init_callback = weak_odr dso_local constant i8* null, section ".CRT$XCU", comdat, align 8
26 @__crt_init_end = weak_odr dso_local constant i8* null, section ".CRT$XCZ", comdat, align 8
28 ; CHECK: @__pobjMapEntryFirst = weak_odr dso_local constant i8* null, section "ATL$__a", comdat, align 8
29 ; CHECK: @__pobjMapEntryMiddle = weak_odr dso_local constant i8* null, section "ATL$__m", comdat, align 8
30 ; CHECK: @__pobjMapEntryLast = weak_odr dso_local constant i8* null, section "ATL$__z", comdat, align 8
31 ; CHECK: @__crt_init_begin = weak_odr dso_local constant i8* null, section ".CRT$XCA", comdat, align 8
32 ; CHECK: @__crt_init_callback = weak_odr dso_local constant i8* null, section ".CRT$XCU", comdat, align 8
33 ; CHECK: @__crt_init_end = weak_odr dso_local constant i8* null, section ".CRT$XCZ", comdat, align 8
35 !llvm.asan.globals = !{!0, !2, !4, !6, !8, !10}
36 !llvm.module.flags = !{!12, !13}
39 !0 = !{i8** @__pobjMapEntryFirst, !1, !"__pobjMapEntryFirst", i1 false, i1 false}
40 !1 = !{!"t.c", i32 6, i32 61}
41 !2 = !{i8** @__pobjMapEntryMiddle, !3, !"__pobjMapEntryMiddle", i1 false, i1 false}
42 !3 = !{!"t.c", i32 7, i32 61}
43 !4 = !{i8** @__pobjMapEntryLast, !5, !"__pobjMapEntryLast", i1 false, i1 false}
44 !5 = !{!"t.c", i32 8, i32 61}
45 !6 = !{i8** @__crt_init_begin, !7, !"__crt_init_begin", i1 false, i1 false}
46 !7 = !{!"t.c", i32 16, i32 62}
47 !8 = !{i8** @__crt_init_callback, !9, !"__crt_init_callback", i1 false, i1 false}
48 !9 = !{!"t.c", i32 17, i32 62}
49 !10 = !{i8** @__crt_init_end, !11, !"__crt_init_end", i1 false, i1 false}
50 !11 = !{!"t.c", i32 18, i32 62}
51 !12 = !{i32 1, !"wchar_size", i32 2}
52 !13 = !{i32 7, !"PIC Level", i32 2}
53 !14 = !{!"clang version 7.0.0 "}