brintos

brintos / llvm-project-archived public Read only

0
0
Text · 669 B · 047acdc Raw
25 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t13# RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s4 5## ICF is able to merge sections which relocations referring regular input sections6## or mergeable sections. .eh_frame is represented with a different kind of section,7## here we check that ICF code is able to handle and will not merge sections which8## relocations referring .eh_frame.9 10# CHECK-NOT: selected11 12.section ".eh_frame", "a", @unwind13.globl foo14foo:15  .quad 016.globl bar17bar:18  .quad 019 20.section .text.foo, "ax"21.quad foo22 23.section .text.bar, "ax"24.quad bar25