summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test19
1 files changed, 1 insertions, 18 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test b/llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
index 95e7356d024..8253526d23c 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
@@ -1,15 +1,10 @@
# RUN: yaml2obj %s > %t
+# RUN: cp %t %t1
# RUN: llvm-objcopy --strip-all-gnu %t %t2
# RUN: llvm-strip --strip-all-gnu %t -o %t3
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
# RUN: cmp %t2 %t3
-# Show that the debug section in a segment was removed, to match GNU.
-# First validate that the offset in use is correct.
-# RUN: llvm-objcopy %t %t4
-# RUN: od %t4 -t x1 -N 4 -j 120 | FileCheck %s --check-prefix=COPY-BYTES
-# RUN: od %t2 -t x1 -N 4 -j 120 | FileCheck %s --check-prefix=STRIP-BYTES
-
!ELF
FileHeader:
Class: ELFCLASS64
@@ -17,10 +12,6 @@ FileHeader:
Type: ET_REL
Machine: EM_X86_64
Sections:
- - Name: .debug_in_segment
- Type: SHT_PROGBITS
- Flags: [ ]
- Content: "deadbeef"
- Name: .dynstr
Type: SHT_STRTAB
Flags: [ SHF_ALLOC ]
@@ -54,11 +45,6 @@ Sections:
- Name: .rela.text
Type: SHT_RELA
Info: .text
-ProgramHeaders:
- # Use an arbitrary segment type to show that the segment type is unimportant.
- - Type: 0x61234567
- Sections:
- - Section: .debug_in_segment
# CHECK: SectionHeaderCount: 8
@@ -69,6 +55,3 @@ ProgramHeaders:
# CHECK: Name: .comment
# CHECK: Name: .random_section_name
# CHECK: Name: .shstrtab
-
-# COPY-BYTES: de ad be ef
-# STRIP-BYTES: 00 00 00 00
OpenPOWER on IntegriCloud