2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/comdat-discarded-reloc.s -o %t2.o
4 # RUN: ld.lld -gc-sections %t.o %t2.o -o %t
6 ## ELF spec doesn't allow a relocation to point to a deduplicated
7 ## COMDAT section. Unfortunately this happens in practice (e.g. .eh_frame)
8 ## Test case checks we do not crash.
12 .section .text.foo,"aG",@progbits,group,comdat