[llvm] r366896 - [llvm-objdump] - Import the test/Object/X86/no-start-symbol.test test case and rewrite it to use YAML.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 05:24:43 PDT 2019
Author: grimar
Date: Wed Jul 24 05:24:43 2019
New Revision: 366896
URL: http://llvm.org/viewvc/llvm-project?rev=366896&view=rev
Log:
[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
Added:
llvm/trunk/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test
Removed:
llvm/trunk/test/Object/Inputs/no-start-symbol.elf-x86_64
llvm/trunk/test/Object/X86/no-start-symbol.test
Removed: llvm/trunk/test/Object/Inputs/no-start-symbol.elf-x86_64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/no-start-symbol.elf-x86_64?rev=366895&view=auto
==============================================================================
Binary files llvm/trunk/test/Object/Inputs/no-start-symbol.elf-x86_64 (original) and llvm/trunk/test/Object/Inputs/no-start-symbol.elf-x86_64 (removed) differ
Removed: llvm/trunk/test/Object/X86/no-start-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/X86/no-start-symbol.test?rev=366895&view=auto
==============================================================================
--- llvm/trunk/test/Object/X86/no-start-symbol.test (original)
+++ llvm/trunk/test/Object/X86/no-start-symbol.test (removed)
@@ -1,10 +0,0 @@
-RUN: llvm-objdump -d %p/../Inputs/no-start-symbol.elf-x86_64 | FileCheck %s
-
-Test that we disassemble the start of the section.
-
-CHECK: Disassembly of section .text:
-CHECK-EMPTY:
-CHECK-NEXT: .text:
-CHECK-NEXT: 0: 90 nop
-CHECK: foo:
-CHECK-NEXT: 1: 90 nop
Added: llvm/trunk/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test?rev=366896&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test (added)
+++ llvm/trunk/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test Wed Jul 24 05:24:43 2019
@@ -0,0 +1,28 @@
+## Test that we disassemble the start of the section even
+## if there is no start symbol.
+
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objdump -d %t | FileCheck %s
+
+# CHECK: Disassembly of section .text:
+# CHECK-EMPTY:
+# CHECK-NEXT: .text:
+# CHECK-NEXT: 0: 90 nop
+# CHECK: foo:
+# CHECK-NEXT: 1: 90 nop
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_REL
+ Machine: EM_X86_64
+Sections:
+ - Name: .text
+ Type: SHT_PROGBITS
+ Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
+ Content: '9090'
+Symbols:
+ - Name: foo
+ Section: .text
+ Value: 0x0000000000000001
More information about the llvm-commits
mailing list