brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 806ed81 Raw
47 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3// RUN: not ld.lld -shared --vs-diagnostics %t.o -o /dev/null 2>&1 | FileCheck %s4 5// CHECK: dyn.s(15): error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC6// CHECK-NEXT: >>> defined in {{.*}}.o7// CHECK-NEXT: >>> referenced by dyn.s:158// CHECK-NEXT: >>>{{.*}}.o:(.text+0x{{.+}})9 10// CHECK: /tmp{{/|\\}}dyn.s(20): error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC11// CHECK-NEXT: >>> defined in {{.*}}.o12// CHECK-NEXT: >>> referenced by dyn.s:20 (/tmp{{/|\\}}dyn.s:20)13// CHECK-NEXT: >>>{{.*}}.o:(.text+0x{{.+}})14 15.file 1 "dyn.s"16.loc 1 1517 18foo:19.quad foo20 21.file 2 "/tmp" "dyn.s"22.loc 2 2023 24bar:25.quad bar26 27.section .debug_abbrev,"",@progbits28  .byte  1                      # Abbreviation Code29  .byte 17                      # DW_TAG_compile_unit30  .byte  0                      # DW_CHILDREN_no31  .byte 16                      # DW_AT_stmt_list32  .byte 23                      # DW_FORM_sec_offset33  .byte  0                      # EOM(1)34  .byte  0                      # EOM(2)35  .byte  0                      # EOM(3)36 37.section .debug_info,"",@progbits38  .long .Lend0 - .Lbegin0       # Length of Unit39.Lbegin0:40  .short 4                      # DWARF version number41  .long  .debug_abbrev          # Offset Into Abbrev. Section42  .byte  8                      # Address Size (in bytes)43  .byte  1                      # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit44  .long  .debug_line            # DW_AT_stmt_list45.Lend0:46  .section .debug_line,"",@progbits47