1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/tools/llvm-readobj/gnu-section-mapping-no-shdrs.test
James Henderson 3e46735630 [llvm-readelf]Test a couple of corner-cases for --section-mapping
This patch adds two new tests for edge-case behaviour for --section-
mapping, namely when there are no program headers, and when there are no
section headers.

Reviewed by: mattd

Differential Revision: https://reviews.llvm.org/D58456

llvm-svn: 354484
2019-02-20 17:21:38 +00:00

16 lines
458 B
Plaintext

RUN: llvm-objcopy --strip-sections %p/Inputs/phdrs-elf.exe-x86_64 %t.o
RUN: llvm-readelf --section-mapping %t.o | FileCheck %s
CHECK: Section to Segment mapping:
CHECK-NEXT: Segment Sections...
CHECK-NEXT: 00 {{$}}
CHECK-NEXT: 01 {{$}}
CHECK-NEXT: 02 {{$}}
CHECK-NEXT: 03 {{$}}
CHECK-NEXT: 04 {{$}}
CHECK-NEXT: 05 {{$}}
CHECK-NEXT: 06 {{$}}
CHECK-NEXT: 07 {{$}}
CHECK-NEXT: 08 {{$}}
CHECK-NEXT: 09 {{$}}
CHECK-NOT: {{.}}