1# Check that llvm-readobj shows arch specific ELF section flags. 2 3# RUN: yaml2obj -docnum 1 %s > %t-amdgpu.o 4# RUN: llvm-readobj -s %t-amdgpu.o | FileCheck -check-prefix=AMD %s 5 6# AMD: Flags [ (0x300000) 7# AMD-NEXT: SHF_AMDGPU_HSA_GLOBAL (0x100000) 8# AMD-NEXT: SHF_AMDGPU_HSA_READONLY (0x200000) 9# AMD-NEXT: ] 10 11# amdgpu.o 12--- !ELF 13FileHeader: 14 Class: ELFCLASS64 15 Data: ELFDATA2LSB 16 OSABI: ELFOSABI_GNU 17 Type: ET_REL 18 Machine: EM_AMDGPU 19 Flags: [] 20Sections: 21 - Name: .amdgpu 22 Type: SHT_PROGBITS 23 Flags: [SHF_AMDGPU_HSA_GLOBAL, SHF_AMDGPU_HSA_READONLY] 24 Size: 4 25 26# RUN: yaml2obj -docnum 2 %s > %t-hex.o 27# RUN: llvm-readobj -s %t-hex.o | FileCheck -check-prefix=HEX %s 28 29# HEX: Flags [ (0x10000000) 30# HEX-NEXT: SHF_HEX_GPREL (0x10000000) 31# HEX-NEXT: ] 32 33# hex.o 34--- !ELF 35FileHeader: 36 Class: ELFCLASS32 37 Data: ELFDATA2LSB 38 Type: ET_REL 39 Machine: EM_HEXAGON 40 Flags: [] 41Sections: 42 - Name: .hex 43 Type: SHT_PROGBITS 44 Flags: [SHF_HEX_GPREL] 45 Size: 4 46 47# RUN: yaml2obj -docnum 3 %s > %t-mips.o 48# RUN: llvm-readobj -s %t-mips.o | FileCheck -check-prefix=MIPS %s 49 50# MIPS: Flags [ (0x38000000) 51# MIPS-NEXT: SHF_MIPS_GPREL (0x10000000) 52# MIPS-NEXT: SHF_MIPS_MERGE (0x20000000) 53# MIPS-NEXT: SHF_MIPS_NOSTRIP (0x8000000) 54# MIPS-NEXT: ] 55 56# mips.o 57--- !ELF 58FileHeader: 59 Class: ELFCLASS32 60 Data: ELFDATA2LSB 61 Type: ET_REL 62 Machine: EM_MIPS 63 Flags: [] 64Sections: 65 - Name: .mips 66 Type: SHT_PROGBITS 67 Flags: [SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_NOSTRIP] 68 Size: 4 69 70# RUN: yaml2obj -docnum 4 %s > %t-x86_64.o 71# RUN: llvm-readobj -s %t-x86_64.o | FileCheck -check-prefix=X86_64 %s 72 73# X86_64: Flags [ (0x10000000) 74# X86_64-NEXT: SHF_X86_64_LARGE (0x10000000) 75# X86_64-NEXT: ] 76 77# x86_64.o 78--- !ELF 79FileHeader: 80 Class: ELFCLASS64 81 Data: ELFDATA2LSB 82 Type: ET_REL 83 Machine: EM_X86_64 84 Flags: [] 85Sections: 86 - Name: .x86_64 87 Type: SHT_PROGBITS 88 Flags: [SHF_X86_64_LARGE] 89 Size: 4 90... 91