166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi | FileCheck -check-prefix=ASM %s 266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \ 366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ RUN: elf-dump --dump-section-data | FileCheck -check-prefix=OBJ %s 466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .syntax unified 566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .text 666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .globl barf 766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .align 2 866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .type barf,%function 966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbarf: @ @barf 1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ BB#0: @ %entry 1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman movw r0, :lower16:GOT-(.LPC0_2+8) 1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman movt r0, :upper16:GOT-(.LPC0_2+8) 1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman.LPC0_2: 1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ ASM: movw r0, :lower16:(GOT-(.LPC0_2+8)) 1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ ASM-NEXT: movt r0, :upper16:(GOT-(.LPC0_2+8)) 1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@@ make sure that the text section fixups are sane too 1866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ: '.text' 1966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_type', 0x00000001 2066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_flags', 0x00000006 2166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_addr', 0x00000000 2266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_offset', 0x00000034 2366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_size', 0x00000008 2466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_link', 0x00000000 2566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_info', 0x00000000 2666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_addralign', 0x00000004 2766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'sh_entsize', 0x00000000 2866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: '_section_data', 'f00f0fe3 f40f4fe3' 2966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ: Relocation 0 3166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_offset', 0x00000000 3266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_sym' 3366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_type', 0x2d 3466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 3566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ: Relocation 1 3666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_offset', 0x00000004 3766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_sym' 3866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ OBJ-NEXT: 'r_type', 0x2e 3966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 40