brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 9690562 Raw
64 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: ld.lld --gdb-index -e 0 %t.o %t.o -o /dev/null 2>&1 | count 04 5## .debug_info has a relocation to .text.foo . The second %t.o is discarded.6## Check we don't error on the relocation.7# CHECK: .rela.debug_info {8# CHECK-NEXT: 0xC R_X86_64_64 .text.foo 0x09 10.section .text.foo,"axG",@progbits,foo,comdat11.globl foo12.Lfunc_begin0:13foo:14  ret15.Lfunc_end0:16 17.section .debug_abbrev,"",@progbits18  .byte   1       # Abbreviation Code19  .byte   17      # DW_TAG_compile_unit20  .byte   1       # DW_CHILDREN_yes21  .byte   17      # DW_AT_low_pc22  .byte   1       # DW_FORM_addr23  .byte   18      # DW_AT_high_pc24  .byte   6       # DW_FORM_data425  .ascii  "\264B" # DW_AT_GNU_pubnames26  .byte   25      # DW_FORM_flag_present27  .byte   0       # EOM(1)28  .byte   0       # EOM(2)29  .byte   2       # Abbreviation Code30  .byte   46      # DW_TAG_subprogram31  .byte   0       # DW_CHILDREN_no32  .byte   3       # DW_AT_name33  .byte   8       # DW_FORM_string34  .byte   0       # EOM(1)35  .byte   0       # EOM(2)36  .byte   037 38.section .debug_info,"",@progbits39.Lcu_begin0:40  .long   .Lcu_end0 - .Lcu_begin0 - 441  .short  4              # DWARF version number42  .long   0              # Offset Into Abbrev. Section43  .byte   8              # Address Size44.Ldie0:45  .byte   1              # Abbrev [1] DW_TAG_compile_unit46  .quad   .Lfunc_begin0  # DW_AT_low_pc47  .long   .Lfunc_end0 - .Lfunc_begin0 # DW_AT_high_pc48  .byte   2              # Abbrev [2] DW_TAG_subprogram49  .asciz  "foo"          # DW_AT_name50  .byte   051.Lcu_end0:52 53.section .debug_gnu_pubnames,"",@progbits54  .long   .LpubNames_end0 - .LpubNames_begin055.LpubNames_begin0:56  .short  2              # Version57  .long   .Lcu_begin0    # CU Offset58  .long   .Lcu_end0 - .Lcu_begin059  .long   .Ldie0 - .Lcu_begin060  .byte   48             # Attributes: FUNCTION, EXTERNAL61  .asciz  "foo"          # External Name62  .long   063.LpubNames_end0:64