llvm-project
23 строки · 642.0 Байт
1# REQUIRES: x86
2# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
3# RUN: lld-link -debug:symtab -entry:main %t.obj -build-id -Brepro -out:%t.exe
4# RUN: llvm-objdump -s -t %t.exe | FileCheck %s
5
6# Check __buildid points to 0x14000203c which is after the signature RSDS.
7
8# CHECK: SYMBOL TABLE:
9# CHECK-NEXT: 0x0000003c __buildid
10# CHECK: Contents of section .rdata:
11# CHECK-NEXT: 140002000
12# CHECK-NEXT: 140002010
13# CHECK-NEXT: 140002020
14# CHECK-NEXT: 140002030 {{.*}} {{.*}} 52534453 {{.*}}
15# CHECK-NEXT: 140002040
16
17.globl main
18main:
19nop
20
21.section .bss,"bw",discard,__buildid
22.global __buildid
23__buildid:
24