summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/Inputs/associative-comdat-2.s
blob: cd4ef46539f12bdf2d5f0b5b4a49579a24e9e86c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Defines foo and foo_assoc globals. foo is comdat, and foo_assoc is comdat
# associative with it. foo_assoc should be discarded iff foo is discarded,
# either by linker GC or normal comdat merging.

        .section        .rdata,"dr",associative,foo
        .p2align        3
        .quad   foo

        .section        .data,"dw",discard,foo
        .globl  foo                     # @foo
        .p2align        2
foo:
        .long   42
OpenPOWER on IntegriCloud