xref: /llvm-project/lld/test/ELF/icf-relro.s (revision 40a9f2251b75012d1d9ce8f86a834ffef9edfb0f)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3# RUN: ld.lld %t -o /dev/null --icf=all --ignore-data-address-equality --print-icf-sections | FileCheck %s
4
5# CHECK: selected section {{.*}}:(.data.rel.ro)
6# CHECK:   removing identical section {{.*}}:(.data.rel.ro.foo)
7
8.section .data.rel.ro,"aw"
9.quad foo
10
11.section .data.rel.ro.foo,"aw"
12foo:
13.quad foo
14