From a5dfa70806be78c5e07f14b14c758a4223935024 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Tue, 17 Sep 2019 08:38:53 +0000 Subject: [PATCH] [llvm-objcopy] - Remove python invocations from 2 test cases. It is possible to use yaml2obj to create sections with overlapping sh_offset now. This patch does that. Differential revision: https://reviews.llvm.org/D67610 llvm-svn: 372081 --- .../ELF/overlapping-sections-in-segments.test | 12 +----------- .../tools/llvm-objcopy/ELF/overlapping-sections.test | 17 +---------------- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/llvm/test/tools/llvm-objcopy/ELF/overlapping-sections-in-segments.test b/llvm/test/tools/llvm-objcopy/ELF/overlapping-sections-in-segments.test index cd92a7e..1c7cb28 100644 --- a/llvm/test/tools/llvm-objcopy/ELF/overlapping-sections-in-segments.test +++ b/llvm/test/tools/llvm-objcopy/ELF/overlapping-sections-in-segments.test @@ -4,17 +4,6 @@ ## inputs somehow. # RUN: yaml2obj %s -o %t.o -## First, check the address of the section header table. -# RUN: llvm-readobj --file-headers %t.o | FileCheck %s --check-prefix=SHDRS-OFFSET -# SHDRS-OFFSET: SectionHeaderOffset: 0x1050{{$}} - -## Binary edit the section header sh_offset field of the second section to -## (e_shoff+64*2+24 = 0x10e8) overlap the first one. -# RUN: %python -c "with open('%/t.o', 'r+b') as input: import struct; bytes = struct.pack('