1// RUN: llvm-mc -triple i386-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s 2 3.space 0x1ed280 4 .section __DATA,__const 5 .align 4 6.space 0x5181020 7_foo: 8 .long _bar 9 .long 0 10 .long _bar+8 11 .long _bar+24 12 .long 0 13 .long _bar+16 14 15.zerofill __DATA,__bss,__dummy,0x5d780 16.zerofill __DATA,__bss,_bar,48,4 17 18// Normally scattered relocations are used for sym+offset expressions. When 19// 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://12358909 22 23// CHECK: Relocations [ 24// CHECK: Section __const { 25// CHECK: 0x5181034 0 2 0 GENERIC_RELOC_VANILLA 0 __bss 26// CHECK: 0x518102C 0 2 0 GENERIC_RELOC_VANILLA 0 __bss 27// CHECK: 0x5181028 0 2 0 GENERIC_RELOC_VANILLA 0 __bss 28// CHECK: 0x5181020 0 2 0 GENERIC_RELOC_VANILLA 0 __bss 29// CHECK: } 30// CHECK: ] 31