Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 7025bc7

Browse files
author
George Rimar
committed
[llvm-objdump] - Import the test/Object/X86/no-start-symbol.test test case and rewrite it to use YAML.
This patch removes test/Object/X86/no-start-symbol.test (rewrites it to use YAML and moves it to llvm-objdump tests folder). (This test was initially introduced in rL239039, but now there is no reason to keep the precompiled binary it seems). DIfferential revision: https://reviews.llvm.org/D65136 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366896 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6ecadf2 commit 7025bc7

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed
-544 Bytes
Binary file not shown.

test/Object/X86/no-start-symbol.test

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Test that we disassemble the start of the section even
2+
## if there is no start symbol.
3+
4+
# RUN: yaml2obj %s -o %t
5+
# RUN: llvm-objdump -d %t | FileCheck %s
6+
7+
# CHECK: Disassembly of section .text:
8+
# CHECK-EMPTY:
9+
# CHECK-NEXT: .text:
10+
# CHECK-NEXT: 0: 90 nop
11+
# CHECK: foo:
12+
# CHECK-NEXT: 1: 90 nop
13+
14+
--- !ELF
15+
FileHeader:
16+
Class: ELFCLASS64
17+
Data: ELFDATA2LSB
18+
Type: ET_REL
19+
Machine: EM_X86_64
20+
Sections:
21+
- Name: .text
22+
Type: SHT_PROGBITS
23+
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
24+
Content: '9090'
25+
Symbols:
26+
- Name: foo
27+
Section: .text
28+
Value: 0x0000000000000001

0 commit comments

Comments
 (0)