brintos

brintos / llvm-project-archived public Read only

0
0
Text · 909 B · 7d3b4b2 Raw
35 lines · plain
1# REQUIRES: x862# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj3# RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe4# RUN: llvm-readobj %t.exe --sections --section-data | FileCheck %s5 6# Section relocations against absolute symbols resolve to the last real output7# section index plus one.8 9.text10.global main11main:12ret13 14.section .rdata,"dr"15.secidx __guard_fids_table16 17# CHECK: Sections [18# CHECK:   Section {19# CHECK:     Number: 120# CHECK:     Name: .text (2E 74 65 78 74 00 00 00)21# CHECK:     VirtualSize: 0x122# CHECK:     SectionData (23# CHECK:       0000: C3                                   |.|24# CHECK:     )25# CHECK:   }26# CHECK:   Section {27# CHECK:     Number: 228# 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: Section34# CHECK: ]35