1 @ RUN
: llvm-mc
-n
-triple armv7-apple-darwin10
%s
-filetype
=obj
-o
%t.o
2 @ RUN
: llvm-readobj
-r
--expand-relocs
< %t.o | FileCheck
%s
21 @ Make the _foo symbol sufficiently far away to force the
'bl' relocation
22 @ above to
be out of range. On Darwin
, the assembler deals with this by
23 @ generating an external relocation so the linker can create
a branch
28 .section __TEXT,initcode,regular,pure_instructions
39 @ CHECK
: File
: <stdin
>
40 @ CHECK
: Format
: Mach-O arm
42 @ CHECK
: AddressSize
: 32bit
43 @ CHECK
: Relocations
[
44 @ CHECK
: Section __text
{
49 @ CHECK
: Type
: ARM_THUMB_RELOC_BR22
(6)
50 @ CHECK
: Symbol
: _foo
(2)