Files
clang-p2996/lld/test/wasm/Inputs/comdat1.s
Derek Schuff dd6412c05c [WebAssembly][lld] Exclude COMDAT sections
Allow exclusion/discarding of custom sections with COMDAT groups.
It piggybacks on the existing COMDAT-handling code, but applies to custom sections as well.

Differential Revision: https://reviews.llvm.org/D92950
2020-12-10 17:47:41 -08:00

14 lines
310 B
ArmAsm

.text
.section .text.foo,"G",@,foo,comdat
.globl foo
.type foo,@function
foo:
.functype foo () -> ()
return
end_function
.section .debug_foo,"G",@,foo,comdat
.int32 1
.section .debug_foo,"G",@,duplicate,comdat
.int64 123