1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-nm --no-sort %t | FileCheck %s
4 ## We used to be wrong with some linker synthesized symbols.
6 ## We mark __init_array_start as 'd', as consistent with GNU nm >= 2.33 (older GNU
7 ## nm marks it as 't'). See https://sourceware.org/bugzilla/show_bug.cgi?id=24511
9 # CHECK: d __fini_array_start
10 # CHECK: d __init_array_start
11 # CHECK: d __preinit_array_start
12 # CHECK: B __bss_start
25 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 Flags: [ SHF_ALLOC, SHF_WRITE ]
31 Flags: [ SHF_ALLOC, SHF_WRITE ]
32 - Name: .preinit_array
33 Type: SHT_PREINIT_ARRAY
34 Flags: [ SHF_ALLOC, SHF_WRITE ]
37 Flags: [ SHF_ALLOC, SHF_WRITE ]
40 Flags: [ SHF_ALLOC, SHF_WRITE ]
42 - Name: __fini_array_start
44 - Name: __init_array_start
46 - Name: __preinit_array_start
47 Section: .preinit_array