brintos

brintos / llvm-project-archived public Read only

0
0
Text · 765 B · eefee47 Raw
25 lines · plain
1# REQUIRES: x862 3## .data.foo and .data.bar are combined into .data,4## so their relocation sections should also be combined.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o7# RUN: ld.lld --emit-relocs %t.o -o %t.so -shared8# RUN: llvm-readobj -r %t.so | FileCheck %s9 10# CHECK:       Relocations [11# CHECK-NEXT:    Section ({{.*}}) .rela.dyn {12# CHECK-NEXT:     [[ADDR1:[0-9a-f]+]] R_X86_64_64 zed 0x013# CHECK-NEXT:     [[ADDR2:[0-9a-f]+]] R_X86_64_64 zed 0x014# CHECK-NEXT:   }15# CHECK-NEXT:   Section ({{.*}}) .rela.data {16# CHECK-NEXT:     [[ADDR1]] R_X86_64_64 zed 0x017# CHECK-NEXT:     [[ADDR2]] R_X86_64_64 zed 0x018# CHECK-NEXT:   }19# CHECK-NEXT: ]20 21.section        .data.foo,"aw",%progbits22.quad zed23.section        .data.bar,"aw",%progbits24.quad zed25