1 # Show that yaml2obj can handle a dynamic section with raw content instead of
2 # entries. Also show that it rejects raw content when entries are also provided.
4 # RUN: yaml2obj --docnum=1 %s -o %t1
5 # RUN: llvm-readobj -x .dynamic --sections %t1 | FileCheck %s --check-prefix=RAW
8 # RAW-NEXT: Type: SHT_DYNAMIC
15 # RAW: Hex dump of section '.dynamic':
16 # RAW-NEXT: 0x00000000 01234567 89012345 67890000 00000000 {{.*}}
27 Content: "01234567890123456789000000000000"
29 # RUN: not yaml2obj --docnum=2 %s 2>&1 | FileCheck %s --check-prefix=ERR
31 # ERR: cannot specify both raw content and explicit entries for dynamic section '.dynamic1'
32 # ERR: cannot specify both raw content and explicit entries for dynamic section '.dynamic2'