reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj --sections --section-symbols | FileCheck %s

        .text
        .def     weak_func;
        .scl    2;
        .type   32;
        .endef
        .section        .text,"xr",discard,weak_func
        .globl  weak_func
        .align  16, 0x90
weak_func:                              # @weak_func
.Ltmp0:
.seh_proc weak_func
# %bb.0:                                # %entry
        pushq   %rbp
.Ltmp1:
        .seh_pushreg %rbp
        movq    %rsp, %rbp
.Ltmp2:
        .seh_setframe %rbp, 0
.Ltmp3:
        .seh_endprologue
        xorl    %eax, %eax
        popq    %rbp
        retq
.Leh_func_end0:
.Ltmp4:
        .seh_endproc

// CHECK: Sections [
// CHECK:   Section {
// CHECK:     Name: .text
// CHECK:   }
// CHECK:   Section {
// CHECK:     Name: .data
// CHECK:   }
// CHECK:   Section {
// CHECK:     Name: .bss
// CHECK:   }
// CHECK:   Section {
// CHECK:     Number: [[TEXT_SECNUM:[0-9]+]]
// CHECK:     Name: .text
// CHECK:     Characteristics [
// CHECK:       IMAGE_SCN_LNK_COMDAT
// CHECK:     ]
// CHECK:   }
// CHECK:   Section {
// CHECK:     Number: [[XDATA_SECNUM:[0-9]+]]
// CHECK:     Name: .xdata
// CHECK:     Characteristics [
// CHECK:       IMAGE_SCN_LNK_COMDAT
// CHECK:     ]
// CHECK:     Symbols [
// CHECK:       Symbol {
// CHECK:         Name: .xdata
// CHECK:         Section: .xdata ([[XDATA_SECNUM]])
// CHECK:         StorageClass: Static (0x3)
// CHECK:         AuxSymbolCount: 1
// CHECK:         AuxSectionDef {
// CHECK:           Selection: Associative (0x5)
// CHECK:           AssocSection: .text ([[TEXT_SECNUM]])
// CHECK:         }
// CHECK:       }
// CHECK:     ]
// CHECK:   }
// CHECK:   Section {
// CHECK:     Number: [[PDATA_SECNUM:[0-9]+]]
// CHECK:     Name: .pdata
// CHECK:     Characteristics [
// CHECK:       IMAGE_SCN_LNK_COMDAT
// CHECK:     ]
// CHECK:     Symbols [
// CHECK:       Symbol {
// CHECK:         Name: .pdata
// CHECK:         Section: .pdata ([[PDATA_SECNUM]])
// CHECK:         StorageClass: Static (0x3)
// CHECK:         AuxSymbolCount: 1
// CHECK:         AuxSectionDef {
// CHECK:           Selection: Associative (0x5)
// CHECK:           AssocSection: .text ([[TEXT_SECNUM]])
// CHECK:         }
// CHECK:       }
// CHECK:     ]
// CHECK:   }
// CHECK: ]