]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/icf-relro.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / icf-relro.s
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"
12 foo:
13 .quad foo