summaryrefslogtreecommitdiffstats
path: root/lld/test/old-elf/check.test
blob: 3fc11728e12d1910004cf4183ee585d1fb231812 (plain)
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
# This tests the basic functionality of ordering data and functions as they
# appear in the inputs
RUN: lld -flavor old-gnu -target i386 -e global_func --noinhibit-exec --output-filetype=yaml \
RUN:    %p/Inputs/object-test.elf-i386  -o %t
RUN: FileCheck %s -check-prefix ELF-i386 < %t
RUN: lld -flavor old-gnu -target hexagon -e global_func --noinhibit-exec --output-filetype=yaml \
RUN:    %p/Inputs/object-test.elf-hexagon -o %t1
RUN: FileCheck %s -check-prefix ELF-hexagon < %t1

ELF-i386: defined-atoms:
ELF-i386:   - name:            global_func
ELF-i386:   - name:            static_func
ELF-i386:   - name:            weak_func
ELF-i386:   - name:            hidden_func
ELF-i386:   - name:            no_dead_strip
ELF-i386:   - name:            no_special_section_func
ELF-i386:   - name:            global_variable
ELF-i386:   - name:            uninitialized_static_variable
ELF-i386:   - name:            special_section_func
ELF-i386: undefined-atoms:
ELF-i386:   - name:            puts
ELF-i386: absolute-atoms:
ELF-i386:   - name:            sample.c

ELF-hexagon:   - name:            global_func
ELF-hexagon:   - name:            static_func
ELF-hexagon:   - name:            weak_func
ELF-hexagon:   - name:            hidden_func
ELF-hexagon:   - name:            no_dead_strip
ELF-hexagon:   - name:            no_special_section_func
ELF-hexagon:   - name:            global_variable
ELF-hexagon:   - name:            uninitialized_static_variable
ELF-hexagon:   - name:            special_section_func
ELF-hexagon: undefined-atoms:
ELF-hexagon:   - name:            puts
ELF-hexagon: absolute-atoms:
ELF-hexagon:   - name:            sample.c
ELF-hexagon:     scope:           static
ELF-hexagon:     value:           0x0000000000000000
OpenPOWER on IntegriCloud