2006-11-29 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / gas / testsuite / gas / arm / offset.s
index ba3ecbabe64457c0d827c23ee3fc24978f885052..53d567def2d431244a47d8da73d14e23252ab84e 100644 (file)
@@ -1,5 +1,14 @@
-@ test for OFFSET_IMM reloc against global symbols
+       @ test that an OFFSET_IMM reloc against a global symbol is
+       @ still resolved by the assembler, as long as the symbol is in
+       @ the same section as the reference
+       .text
+       .globl l
+       .globl foo
+l:
+       ldr r0, foo
+foo:
+       nop
 
-.globl foo
-foo: .word 0
-ldr r0, foo
+       @ pad section for a.out's benefit
+       nop
+       nop
This page took 0.023631 seconds and 4 git commands to generate.