1# REQUIRES: x86 2# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj 3# RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe 4# RUN: llvm-readobj %t.exe -sections -section-data | FileCheck %s 5 6# Section relocations against absolute symbols resolve to the last real output 7# section index plus one. 8 9.text 10.global main 11main: 12ret 13 14.section .rdata,"dr" 15.secidx __guard_fids_table 16 17# CHECK: Sections [ 18# CHECK: Section { 19# CHECK: Number: 1 20# CHECK: Name: .text (2E 74 65 78 74 00 00 00) 21# CHECK: VirtualSize: 0x1 22# CHECK: SectionData ( 23# CHECK: 0000: C3 |.| 24# CHECK: ) 25# CHECK: } 26# CHECK: Section { 27# CHECK: Number: 2 28# CHECK: Name: .rdata (2E 72 64 61 74 61 00 00) 29# CHECK: SectionData ( 30# CHECK: 0000: 0300 |..| 31# CHECK: ) 32# CHECK: } 33# CHECK-NOT: Section 34# CHECK: ] 35