2 # RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t
4 # RUN: llvm-readobj --sections --symbols -l %t | FileCheck %s
14 .section .rodata, #alloc
21 # CHECK: Name: .rodata
22 # CHECK: Type: SHT_PROGBITS
23 # CHECK: Flags [ (0x2)
24 # CHECK: SHF_ALLOC (0x2)
26 # CHECK: Address: [[RODATA_ADDR:[0-9xa-f]+]]
31 # CHECK: Type: SHT_PROGBITS
32 # CHECK: Flags [ (0x3)
33 # CHECK: SHF_ALLOC (0x2)
34 # CHECK: SHF_WRITE (0x1)
36 # CHECK: Address: [[DATA_ADDR:[0-9xa-f]+]]
39 # CHECK: ProgramHeader {
40 # CHECK: Type: PT_LOAD
41 # CHECK: ProgramHeader {
42 # CHECK: Type: PT_LOAD
46 # CHECK: Value: [[DATA_ADDR]]
49 # CHECK: Section: .data
54 # CHECK: Value: [[RODATA_ADDR]]
57 # CHECK: Section: .rodata