brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 7f9e887 Raw
58 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-nm --no-sort %t | FileCheck %s3 4## We used to be wrong with some linker synthesized symbols.5 6## We mark __init_array_start as 'd', as consistent with GNU nm >= 2.33 (older GNU7## nm marks it as 't'). See https://sourceware.org/bugzilla/show_bug.cgi?id=245118 9# CHECK: d __fini_array_start10# CHECK: d __init_array_start11# CHECK: d __preinit_array_start12# CHECK: B __bss_start13# CHECK: D _edata14# CHECK: B _end15 16!ELF17FileHeader:18  Class:   ELFCLASS6419  Data:    ELFDATA2LSB20  Type:    ET_EXEC21  Machine: EM_X86_6422Sections:23  - Name: .text24    Type: SHT_PROGBITS25    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]26  - Name: .fini_array27    Type: SHT_FINI_ARRAY28    Flags: [ SHF_ALLOC, SHF_WRITE ]29  - Name: .init_array30    Type: SHT_INIT_ARRAY31    Flags: [ SHF_ALLOC, SHF_WRITE ]32  - Name: .preinit_array33    Type: SHT_PREINIT_ARRAY34    Flags: [ SHF_ALLOC, SHF_WRITE ]35  - Name: .data36    Type: SHT_PROGBITS37    Flags: [ SHF_ALLOC, SHF_WRITE ]38  - Name: .bss39    Type: SHT_NOBITS40    Flags: [ SHF_ALLOC, SHF_WRITE ]41Symbols:42  - Name:    __fini_array_start43    Section: .fini_array44  - Name:    __init_array_start45    Section: .init_array46  - Name:    __preinit_array_start47    Section: .preinit_array48 49  - Name:    __bss_start50    Section: .bss51    Binding: STB_GLOBAL52  - Name:    _edata53    Section: .data54    Binding: STB_GLOBAL55  - Name:    _end56    Section: .bss57    Binding: STB_GLOBAL58