summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/secrel-absolute.s
blob: 630af6e72276c9879437f28825a036dab8cab6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# REQUIRES: x86
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
# RUN: not lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe 2>&1 | FileCheck %s

# secrel relocations against absolute symbols are errors.

# CHECK: SECREL relocation cannot be applied to absolute symbols

.text
.global main
main:
ret

.section .rdata,"dr"
.secrel32 __guard_fids_table
OpenPOWER on IntegriCloud