brintos

brintos / llvm-project-archived public Read only

0
0
Text · 944 B · 04566d9 Raw
31 lines · plain
1// RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s2 3.space 0x1ed2804       .section        __DATA,__const5       .align  46.space 0x51810207_foo:8       .long   _bar9       .long   010       .long   _bar+811       .long   _bar+2412       .long   013       .long   _bar+1614 15.zerofill __DATA,__bss,__dummy,0x5d78016.zerofill __DATA,__bss,_bar,48,417 18// Normally scattered relocations are used for sym+offset expressions. When19// the value exceeds 24-bits, however, it's outside what MachO can encode,20// so the assembler falls back to non-scattered relocations.21// rdar://1235890922 23// CHECK: Relocations [24// CHECK:   Section __const {25// CHECK:     0x5181034 0 2 0 GENERIC_RELOC_VANILLA 0 __bss26// CHECK:     0x518102C 0 2 0 GENERIC_RELOC_VANILLA 0 __bss27// CHECK:     0x5181028 0 2 0 GENERIC_RELOC_VANILLA 0 __bss28// CHECK:     0x5181020 0 2 0 GENERIC_RELOC_VANILLA 0 __bss29// CHECK:   }30// CHECK: ]31