brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1011 B · d1d9dfe Raw
38 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t --icf=all --ignore-data-address-equality --print-icf-sections | FileCheck -allow-empty --check-prefix=NOICF %s5# RUN: llvm-readobj -S --section-data %t | FileCheck %s6 7# Check that merge synthetic sections are not merged by ICF.8 9# NOICF-NOT: selected section <internal>:(.rodata)10 11# CHECK:      Name: .rodata12# CHECK-NEXT: Type: SHT_PROGBITS13# CHECK-NEXT: Flags [14# CHECK-NEXT:   SHF_ALLOC15# CHECK-NEXT:   SHF_MERGE16# CHECK-NEXT: ]17# CHECK-NEXT: Address:18# CHECK-NEXT: Offset:19# CHECK-NEXT: Size: 1620# CHECK-NEXT: Link:21# CHECK-NEXT: Info:22# CHECK-NEXT: AddressAlignment: 123# CHECK-NEXT: EntrySize: 024# CHECK-NEXT: SectionData (25# CHECK-NEXT:   0000: 10325476 67452301 67452301 1032547626 27.section .rodata.cst4,"aM",@progbits,428rodata4:29  .long 0x0123456730  .long 0x7654321031  .long 0x0123456732  .long 0x7654321033 34.section .rodata.cst8,"aM",@progbits,835rodata8:36  .long 0x0123456737  .long 0x7654321038