| OLD | NEW |
| 1 ; Tests filetype=obj with -ffunction-sections. | 1 ; Tests filetype=obj with -ffunction-sections. |
| 2 | 2 |
| 3 ; RUN: %p2i -i %s --filetype=obj --args -O2 -o %t -ffunction-sections && \ | 3 ; RUN: %p2i -i %s --filetype=obj --args -O2 -o %t -ffunction-sections && \ |
| 4 ; RUN: llvm-readobj -file-headers -sections -section-data \ | 4 ; RUN: llvm-readobj -file-headers -sections -section-data \ |
| 5 ; RUN: -relocations -symbols %t | FileCheck %s | 5 ; RUN: -relocations -symbols %t | FileCheck %s |
| 6 | 6 |
| 7 ; RUN: %if --need=allow_dump --command \ | 7 ; RUN: %if --need=allow_dump --command \ |
| 8 ; RUN: %p2i -i %s --args -O2 -ffunction-sections \ | 8 ; RUN: %p2i -i %s --args -O2 -ffunction-sections \ |
| 9 ; RUN: | %if --need=allow_dump --command \ | 9 ; RUN: | %if --need=allow_dump --command \ |
| 10 ; RUN: llvm-mc -triple=i686-nacl -filetype=obj -o - \ | 10 ; RUN: llvm-mc -triple=i686-nacl -filetype=obj -o - \ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ; CHECK: Section { | 70 ; CHECK: Section { |
| 71 ; CHECK: Name: .rel.text._start | 71 ; CHECK: Name: .rel.text._start |
| 72 ; CHECK: Type: SHT_REL | 72 ; CHECK: Type: SHT_REL |
| 73 ; CHECK: Flags [ (0x0) | 73 ; CHECK: Flags [ (0x0) |
| 74 ; CHECK: ] | 74 ; CHECK: ] |
| 75 ; CHECK: ) | 75 ; CHECK: ) |
| 76 ; CHECK: } | 76 ; CHECK: } |
| 77 | 77 |
| 78 ; CHECK: Relocations [ | 78 ; CHECK: Relocations [ |
| 79 ; CHECK: Section ({{[0-9]+}}) .rel.text.foo { | 79 ; CHECK: Section ({{[0-9]+}}) .rel.text.foo { |
| 80 ; CHECK: 0x21 R_386_PC32 memcpy 0x0 | 80 ; CHECK: 0x1E R_386_PC32 memcpy 0x0 |
| 81 ; CHECK: } | 81 ; CHECK: } |
| 82 ; Relocation can be against the start of the section or | 82 ; Relocation can be against the start of the section or |
| 83 ; the function's symbol itself. | 83 ; the function's symbol itself. |
| 84 ; CHECK: Section ({{[0-9]+}}) .rel.text._start { | 84 ; CHECK: Section ({{[0-9]+}}) .rel.text._start { |
| 85 ; CHECK: 0x13 R_386_PC32 {{.*}}bar 0x0 | 85 ; CHECK: 0x10 R_386_PC32 {{.*}}bar 0x0 |
| 86 ; CHECK: 0x25 R_386_PC32 {{.*}}foo 0x0 | 86 ; CHECK: 0x1C R_386_PC32 {{.*}}foo 0x0 |
| 87 ; CHECK: } | 87 ; CHECK: } |
| 88 ; CHECK: ] | 88 ; CHECK: ] |
| 89 | 89 |
| 90 ; CHECK: Symbols [ | 90 ; CHECK: Symbols [ |
| 91 ; CHECK: Name: bar | 91 ; CHECK: Name: bar |
| 92 ; CHECK: Name: foo | 92 ; CHECK: Name: foo |
| 93 ; CHECK: Name: _start | 93 ; CHECK: Name: _start |
| 94 ; CHECK: Name: memcpy | 94 ; CHECK: Name: memcpy |
| 95 ; CHECK: ] | 95 ; CHECK: ] |
| OLD | NEW |