llvm-project

Форк
0
/
icf-circular.test 
81 строка · 2.6 Кб
1
# RUN: yaml2obj %s -o %t.obj
2
# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
3
# RUN:   /verbose %t.obj > %t.log 2>&1
4
# RUN: FileCheck %s < %t.log
5

6
# CHECK: Selected foo
7
# CHECK:   Removed bar
8

9
--- !COFF
10
header:
11
  Machine:         IMAGE_FILE_MACHINE_AMD64
12
  Characteristics: []
13
sections:
14
  - Name:            '.text$mn'
15
    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
16
    Alignment:       16
17
    SectionData:     4883EC28E8000000004883C428C3
18
    Relocations:
19
      - VirtualAddress:  5
20
        SymbolName:      foo
21
        Type:            IMAGE_REL_AMD64_REL32
22
      - VirtualAddress:  10
23
        SymbolName:      __ImageBase
24
        Type:            IMAGE_REL_AMD64_REL32
25
  - Name:            '.text$mn'
26
    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
27
    Alignment:       16
28
    SectionData:     4883EC28E8000000004883C428C3
29
    Relocations:
30
      - VirtualAddress:  5
31
        SymbolName:      bar
32
        Type:            IMAGE_REL_AMD64_REL32
33
      - VirtualAddress:  10
34
        SymbolName:      __ImageBase
35
        Type:            IMAGE_REL_AMD64_REL32
36
symbols:
37
  - Name:            '.text$mn'
38
    Value:           0
39
    SectionNumber:   1
40
    SimpleType:      IMAGE_SYM_TYPE_NULL
41
    ComplexType:     IMAGE_SYM_DTYPE_NULL
42
    StorageClass:    IMAGE_SYM_CLASS_STATIC
43
    SectionDefinition:
44
      Length:          14
45
      NumberOfRelocations: 1
46
      NumberOfLinenumbers: 0
47
      CheckSum:        1682752513
48
      Number:          0
49
      Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES
50
  - Name:            '.text$mn'
51
    Value:           0
52
    SectionNumber:   2
53
    SimpleType:      IMAGE_SYM_TYPE_NULL
54
    ComplexType:     IMAGE_SYM_DTYPE_NULL
55
    StorageClass:    IMAGE_SYM_CLASS_STATIC
56
    SectionDefinition:
57
      Length:          14
58
      NumberOfRelocations: 1
59
      NumberOfLinenumbers: 0
60
      CheckSum:        1682752513
61
      Number:          0
62
      Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES
63
  - Name:            foo
64
    Value:           0
65
    SectionNumber:   1
66
    SimpleType:      IMAGE_SYM_TYPE_NULL
67
    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
68
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
69
  - Name:            bar
70
    Value:           0
71
    SectionNumber:   2
72
    SimpleType:      IMAGE_SYM_TYPE_NULL
73
    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
74
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
75
  - Name:            __ImageBase
76
    Value:           0
77
    SectionNumber:   0
78
    SimpleType:      IMAGE_SYM_TYPE_NULL
79
    ComplexType:     IMAGE_SYM_DTYPE_NULL
80
    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
81
...
82

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.