1 // RUN: llvm-mc -g -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s 2 3 4 // Test that on ELF: 5 // 1. the debug info has a relocation to debug_abbrev and one to to debug_line. 6 // 2. the debug_aranges has relocations to text and debug_line. 7 8 9 .text 10 .globl foo 11 .type foo, @function 12 .align 4 13 foo: 14 ret 15 .size foo, .-foo 16 17 // CHECK: Relocations [ 18 // CHECK: Section ({{[^ ]+}}) .rel.debug_info { 19 // CHECK-NEXT: 0x6 R_386_32 .debug_abbrev 0x0 20 // CHECK-NEXT: 0xC R_386_32 .debug_line 0x0 21 // CHECK: } 22 // CHECK-NEXT: Section ({{[^ ]+}}) .rel.debug_aranges { 23 // CHECK-NEXT: 0x6 R_386_32 .debug_info 0x0 24 // CHECK-NEXT: 0x10 R_386_32 .text 0x0 25 // CHECK-NEXT: } 26 // CHECK-NEXT: ] 27