James Molloy | 6685c08 | 2012-01-26 09:25:43 +0000 | [diff] [blame] | 1 | ; RUN: llc %s -mtriple=armv7-linux-gnueabi -relocation-model=pic \ |
Nico Rieck | ba848e3 | 2013-04-12 04:06:46 +0000 | [diff] [blame] | 2 | ; RUN: -filetype=obj -o - | llvm-readobj -r | FileCheck %s |
James Molloy | 6685c08 | 2012-01-26 09:25:43 +0000 | [diff] [blame] | 3 | |
| 4 | |
| 5 | @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }] |
| 6 | |
| 7 | define void @f() { |
| 8 | ret void |
| 9 | } |
| 10 | |
| 11 | ; Check for a relocation of type R_ARM_TARGET1. |
Nico Rieck | ba848e3 | 2013-04-12 04:06:46 +0000 | [diff] [blame] | 12 | ; CHECK: Relocations [ |
| 13 | ; CHECK: 0x{{[0-9,A-F]+}} R_ARM_TARGET1 |