OLD | NEW |
1 ; Tests filetype=obj with -ffunction-sections. | 1 ; Tests filetype=obj with -ffunction-sections. |
2 | 2 |
3 ; RUN: %p2i -i %s --args -O2 --verbose none -filetype=obj -o %t \ | 3 ; RUN: %p2i -i %s --filetype=obj --args -O2 --verbose none -o %t \ |
4 ; RUN: -ffunction-sections && \ | 4 ; RUN: -ffunction-sections && \ |
5 ; RUN: llvm-readobj -file-headers -sections -section-data \ | 5 ; RUN: llvm-readobj -file-headers -sections -section-data \ |
6 ; RUN: -relocations -symbols %t | FileCheck %s | 6 ; RUN: -relocations -symbols %t | FileCheck %s |
7 | 7 |
8 ; RUN: %p2i -i %s --args -O2 --verbose none -ffunction-sections \ | 8 ; RUN: %p2i -i %s --args -O2 --verbose none -ffunction-sections \ |
9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ | 9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ |
10 ; RUN: | llvm-readobj -file-headers -sections -section-data \ | 10 ; RUN: | llvm-readobj -file-headers -sections -section-data \ |
11 ; RUN: -relocations -symbols - | FileCheck %s | 11 ; RUN: -relocations -symbols - | FileCheck %s |
12 | 12 |
13 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 13 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ; CHECK: 0x25 R_386_PC32 {{.*}}foo 0x0 | 83 ; CHECK: 0x25 R_386_PC32 {{.*}}foo 0x0 |
84 ; CHECK: } | 84 ; CHECK: } |
85 ; CHECK: ] | 85 ; CHECK: ] |
86 | 86 |
87 ; CHECK: Symbols [ | 87 ; CHECK: Symbols [ |
88 ; CHECK: Name: bar | 88 ; CHECK: Name: bar |
89 ; CHECK: Name: foo | 89 ; CHECK: Name: foo |
90 ; CHECK: Name: _start | 90 ; CHECK: Name: _start |
91 ; CHECK: Name: memcpy | 91 ; CHECK: Name: memcpy |
92 ; CHECK: ] | 92 ; CHECK: ] |
OLD | NEW |