xref: /llvm-project/lld/test/COFF/loadcfg.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; REQUIRES: x86
2; RUN: llvm-as -o %t.obj %s
3; RUN: lld-link /out:%t.exe %t.obj /entry:main /subsystem:console
4; RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
5
6; CHECK: LoadConfigTableRVA: 0x2000
7; CHECK: LoadConfigTableSize: 0x70
8
9target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10target triple = "x86_64-pc-windows-msvc"
11
12@_load_config_used = constant [28 x i32] [i32 112, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0]
13
14define void @main() {
15  ret void
16}
17