2 ## Test SHF_LINK_ORDER when the linked-to section has a larger index.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: ld.lld -r %t.o -o %t.ro
5 # RUN: llvm-readelf -x asan_globals %t.ro | FileCheck %s
7 # CHECK: Hex dump of section 'asan_globals':
8 # CHECK-NEXT: 0x00000000 00 .
16 SectionHeaderStringTable: .strtab
20 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
23 Flags: [ SHF_WRITE, SHF_ALLOC, SHF_GROUP ]
27 Flags: [ SHF_ALLOC, SHF_LINK_ORDER, SHF_GROUP ]
36 - SectionOrType: GRP_COMDAT
38 - SectionOrType: asan_globals
39 - SectionOrType: .relaasan_globals
40 - Name: .relaasan_globals
47 - Type: SectionHeaderTable
53 - Name: .relaasan_globals