1; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ 2; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=OBJ %s 3 4target triple = "armv7-none-linux-gnueabi" 5 6@a = external global i8 7 8define arm_aapcs_vfpcc i32 @barf() nounwind { 9entry: 10 %0 = tail call arm_aapcs_vfpcc i32 @foo(i8* @a) nounwind 11 ret i32 %0 12; OBJ: '.text' 13; OBJ-NEXT: 'sh_type' 14; OBJ-NEXT: 'sh_flags' 15; OBJ-NEXT: 'sh_addr' 16; OBJ-NEXT: 'sh_offset' 17; OBJ-NEXT: 'sh_size' 18; OBJ-NEXT: 'sh_link' 19; OBJ-NEXT: 'sh_info' 20; OBJ-NEXT: 'sh_addralign' 21; OBJ-NEXT: 'sh_entsize' 22; OBJ-NEXT: '_section_data', '00482de9 000000e3 000040e3 feffffeb 0088bde8' 23 24; OBJ: Relocation 0 25; OBJ-NEXT: 'r_offset', 0x00000004 26; OBJ-NEXT: 'r_sym', 0x000007 27; OBJ-NEXT: 'r_type', 0x2b 28 29; OBJ: Relocation 1 30; OBJ-NEXT: 'r_offset', 0x00000008 31; OBJ-NEXT: 'r_sym' 32; OBJ-NEXT: 'r_type', 0x2c 33 34; OBJ: # Relocation 2 35; OBJ-NEXT: 'r_offset', 0x0000000c 36; OBJ-NEXT: 'r_sym', 0x000008 37; OBJ-NEXT: 'r_type', 0x1c 38 39} 40 41declare arm_aapcs_vfpcc i32 @foo(i8*) 42 43