1 ## Check we are able to set custom sh_flags field
2 ## for different sections.
4 # RUN: yaml2obj --docnum=1 %s -o %t1
5 # RUN: llvm-readobj --sections %t1 | FileCheck %s --check-prefix=UPDATE-FLAGS
7 # UPDATE-FLAGS: Name: .symtab
8 # UPDATE-FLAGS-NEXT: Type: SHT_SYMTAB
9 # UPDATE-FLAGS-NEXT: Flags [ (0x1)
11 # UPDATE-FLAGS: Name: .strtab
12 # UPDATE-FLAGS-NEXT: Type: SHT_STRTAB
13 # UPDATE-FLAGS-NEXT: Flags [ (0x2)
15 # UPDATE-FLAGS: Name: .shstrtab
16 # UPDATE-FLAGS-NEXT: Type: SHT_STRTAB
17 # UPDATE-FLAGS-NEXT: Flags [ (0x3)
19 # UPDATE-FLAGS: Name: .dynsym
20 # UPDATE-FLAGS-NEXT: Type: SHT_DYNSYM
21 # UPDATE-FLAGS-NEXT: Flags [ (0x4)
23 # UPDATE-FLAGS: Name: .dynstr
24 # UPDATE-FLAGS-NEXT: Type: SHT_STRTAB
25 # UPDATE-FLAGS-NEXT: Flags [ (0x5)
27 # UPDATE-FLAGS: Name: .regular.os
28 # UPDATE-FLAGS-NEXT: Type: SHT_PROGBITS
29 # UPDATE-FLAGS-NEXT: Flags [ (0xAB00000)
31 # UPDATE-FLAGS: Name: .regular.proc
32 # UPDATE-FLAGS-NEXT: Type: SHT_PROGBITS
33 # UPDATE-FLAGS-NEXT: Flags [ (0xC0000000)
35 # UPDATE-FLAGS: Name: .regular.all
36 # UPDATE-FLAGS-NEXT: Type: SHT_PROGBITS
37 # UPDATE-FLAGS-NEXT: Flags [ (0xFFFFFFFF)
45 ## Check we can override flags for implicit sections.
61 ## Check we can override flags for regular sections.
72 ## ShFlags is used when we want to work around the flag values validation.
73 ## It does not make sense to allow both ShFlags and Flags in the document.
75 # RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --check-prefix=ERR
77 # ERR: error: ShFlags and Flags cannot be used together