-@ 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