[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / COFF / reloc-discarded-dwarf.s
blob960f3b308a971e1ac2cd2d437344732156a69366
1 # REQUIRES: x86
2 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t1.obj %s
3 # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t2.obj %s
5 # LLD should not error on relocations in DWARF debug sections against symbols in
6 # discarded sections.
7 # RUN: lld-link -entry:main -debug %t1.obj %t2.obj
9 .section .text,"xr",discard,main
10 .globl main
11 main:
13 retq
15 .section .debug_info,"dr"
16 .quad f
17 .section .eh_frame,"dr"
18 .quad f