zig/deps/lld/test/COFF/secrel-absolute.s
Andrew Kelley 4794281d64 embed LLD 5.0.0
This is 48aaa9f66120f72b5d7e4a90b32fee40a3386ce9 from the
git monorepo.
2017-08-27 17:46:59 -04:00

15 lines
361 B
ArmAsm

# 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