1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/tools/llvm-readobj/elf-sec-compressed.test
George Rimar 8a63746f19 [llvm-readobj] - Teach readobj to recognize SHF_COMPRESSED flag.
Main problem here was that SHF_COMPRESSED has the same value with
XCORE_SHF_CP_SECTION, which was included as standart (common) flag.
As far I understand xCore is a family of controllers and it that
means it's constant should be processed separately,
only if e_machine == EM_XCORE, otherwise llvm-readobj would output
different constants twice for compressed section:

Flags [
..
SHF_COMPRESSED (0x800)
..
XCORE_SHF_CP_SECTION (0x800)
..
]

what probably does not make sence if you're not working with xcore file.

Differential revision: http://reviews.llvm.org/D20273

llvm-svn: 270320
2016-05-21 10:16:58 +00:00

10 lines
256 B
Plaintext

RUN: llvm-readobj -sections \
RUN: %p/Inputs/compression.zlib.style.elf-x86-64 | FileCheck %s
CHECK: Section {
CHECK: Name: .debug_info
CHECK-NEXT: Type: SHT_PROGBITS
CHECK-NEXT: Flags [
CHECK-NEXT: SHF_COMPRESSED (0x800)
CHECK-NEXT: ]