2018-05-23 07:30:44 +08:00
|
|
|
# REQUIRES: x86
|
2018-05-23 07:22:35 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: ld.lld %t -o /dev/null --icf=all --ignore-data-address-equality --print-icf-sections | FileCheck %s
|
2018-05-23 07:22:35 +08:00
|
|
|
|
|
|
|
# CHECK: selected section {{.*}}:(.data.rel.ro)
|
|
|
|
# CHECK: removing identical section {{.*}}:(.data.rel.ro.foo)
|
|
|
|
|
|
|
|
.section .data.rel.ro,"aw"
|
|
|
|
.quad foo
|
|
|
|
|
|
|
|
.section .data.rel.ro.foo,"aw"
|
|
|
|
foo:
|
|
|
|
.quad foo
|