mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
3e46735630
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
16 lines
458 B
Plaintext
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: {{.}}
|