1# REQUIRES: x86
2# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
3# RUN: not lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe 2>&1 | FileCheck %s
4
5# secrel relocations against absolute symbols are errors.
6
7# CHECK: SECREL relocation cannot be applied to absolute symbols
8
9.text
10.global main
11main:
12ret
13
14.section .rdata,"dr"
15.secrel32 __guard_fids_table
16