2018-06-06 21:56:51 +08:00
|
|
|
# REQUIRES: x86
|
2017-07-18 23:11:05 +08:00
|
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t1.obj %s
|
|
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t2.obj %s
|
|
|
|
|
|
|
|
# LLD should not error on relocations in DWARF debug sections against symbols in
|
|
|
|
# discarded sections.
|
|
|
|
# RUN: lld-link -entry:main -debug %t1.obj %t2.obj
|
|
|
|
|
|
|
|
.section .text,"xr",discard,main
|
|
|
|
.globl main
|
|
|
|
main:
|
|
|
|
f:
|
|
|
|
retq
|
|
|
|
|
|
|
|
.section .debug_info,"dr"
|
|
|
|
.quad f
|
2017-10-10 14:05:29 +08:00
|
|
|
.section .eh_frame,"dr"
|
|
|
|
.quad f
|