brintos

brintos / llvm-project-archived public Read only

0
0
Text · 706 B · d4623a9 Raw
27 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3 4.section .foo,"a",@progbits,unique,15.byte 16 7.section .foo,"a",@progbits,unique,28.byte 29 10.section .foo,"a",@progbits,unique,311.byte 312 13## We should have 3 instances of orphan section foo.14## Test with -r15# RUN: ld.lld %t.o -o %t.elf --unique 16# RUN: llvm-readelf -S %t.elf | FileCheck %s17 18# CHECK-COUNT-3: .foo19# CHECK-NOT: .foo20 21## Test that --unique does not affect sections specified in output section descriptions.22# RUN: echo 'SECTIONS { .foo : { *(.foo) }}' > %t.script23# RUN: ld.lld %t.o -o %t2.elf -T %t.script --unique 24# RUN: llvm-readelf -S %t2.elf | FileCheck --check-prefix SCRIPT %s25# SCRIPT: .foo26# SCRIPT-NOT: .foo27