2011-01-17 08:03:18 +00:00
|
|
|
; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \
|
2010-12-01 02:40:06 +00:00
|
|
|
; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=OBJ %s
|
|
|
|
|
|
|
|
target triple = "armv7-none-linux-gnueabi"
|
|
|
|
|
|
|
|
@a = external global i8
|
|
|
|
|
|
|
|
define arm_aapcs_vfpcc i32 @barf() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = tail call arm_aapcs_vfpcc i32 @foo(i8* @a) nounwind
|
|
|
|
ret i32 %0
|
|
|
|
; OBJ: '.text'
|
|
|
|
; OBJ-NEXT: 'sh_type'
|
|
|
|
; OBJ-NEXT: 'sh_flags'
|
|
|
|
; OBJ-NEXT: 'sh_addr'
|
|
|
|
; OBJ-NEXT: 'sh_offset'
|
|
|
|
; OBJ-NEXT: 'sh_size'
|
|
|
|
; OBJ-NEXT: 'sh_link'
|
|
|
|
; OBJ-NEXT: 'sh_info'
|
|
|
|
; OBJ-NEXT: 'sh_addralign'
|
|
|
|
; OBJ-NEXT: 'sh_entsize'
|
|
|
|
; OBJ-NEXT: '_section_data', '00482de9 000000e3 000040e3 feffffeb 0088bde8'
|
|
|
|
|
2011-08-04 14:01:03 +00:00
|
|
|
; OBJ: Relocation 0
|
2010-12-01 02:40:06 +00:00
|
|
|
; OBJ-NEXT: 'r_offset', 0x00000004
|
2011-08-04 14:48:27 +00:00
|
|
|
; OBJ-NEXT: 'r_sym', 0x000007
|
2011-08-04 14:39:30 +00:00
|
|
|
; OBJ-NEXT: 'r_type', 0x2b
|
2010-12-01 02:40:06 +00:00
|
|
|
|
2011-08-04 14:01:03 +00:00
|
|
|
; OBJ: Relocation 1
|
2010-12-01 02:40:06 +00:00
|
|
|
; OBJ-NEXT: 'r_offset', 0x00000008
|
|
|
|
; OBJ-NEXT: 'r_sym'
|
2011-08-04 14:39:30 +00:00
|
|
|
; OBJ-NEXT: 'r_type', 0x2c
|
2010-12-01 02:40:06 +00:00
|
|
|
|
2011-08-04 14:01:03 +00:00
|
|
|
; OBJ: # Relocation 2
|
2010-12-01 02:40:06 +00:00
|
|
|
; OBJ-NEXT: 'r_offset', 0x0000000c
|
2011-08-04 14:48:27 +00:00
|
|
|
; OBJ-NEXT: 'r_sym', 0x000008
|
2011-08-04 14:39:30 +00:00
|
|
|
; OBJ-NEXT: 'r_type', 0x1c
|
2010-12-01 02:40:06 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
declare arm_aapcs_vfpcc i32 @foo(i8*)
|
|
|
|
|