]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/allowduplicates.objtxt
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / allowduplicates.objtxt
1 # RUN: lld -flavor gnu -target x86_64 --allow-multiple-definition %s \
2 # RUN:     --output-filetype=yaml --noinhibit-exec | FileCheck %s
3 #
4 # RUN: not lld -flavor gnu -target x86_64 %s --output-filetype=yaml \
5 # RUN: --noinhibit-exec 2>&1 | FileCheck -check-prefix=ERROR %s
6 #
7 # RUN: lld -flavor gnu -target x86_64 -z muldefs %s \
8 # RUN: --noinhibit-exec --output-filetype=yaml | FileCheck %s
9
10 ---
11 defined-atoms:
12   - name:            .text
13     alignment:       2^4
14     section-choice:  custom-required
15     section-name:    .text
16   - name:            main
17     scope:           global
18     content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
19                        00, C3 ]
20     alignment:       2^4
21     section-choice:  custom-required
22     section-name:    .text
23 ---
24 defined-atoms:
25   - name:            .text
26     alignment:       2^4
27     section-choice:  custom-required
28     section-name:    .text
29   - name:            main
30     scope:           global
31     content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
32                        00, C3 ]
33     alignment:       2^4
34     section-choice:  custom-required
35     section-name:    .text
36 ---
37
38 # CHECK: defined-atoms:
39 # CHECK:   - name:            .text
40 # CHECK:     alignment:       2^4
41 # CHECK:     section-choice:  custom-required
42 # CHECK:     section-name:    .text
43 # CHECK:   - name:            main
44 # CHECK:     scope:           global
45 # CHECK:     content:         [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
46 # CHECK:                        00, C3 ]
47 # CHECK:     alignment:       2^4
48 # CHECK:     section-choice:  custom-required
49 # CHECK:     section-name:    .text
50
51 # ERROR: duplicate symbol error