[llvm] [DWARF5][COFF] Fix wrong relocation in .debug_line (PR #83773)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 08:42:05 PDT 2024
================
@@ -0,0 +1,13 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-gnu %s -o - | llvm-readobj -r - | FileCheck %s
+
+// CHECK: Relocations [
+// CHECK: Section (4) .debug_line {
+// CHECK: 0x22 IMAGE_REL_AMD64_SECREL .debug_line_str (8)
+// CHECK: 0x2C IMAGE_REL_AMD64_SECREL .debug_line_str (8)
+// CHECK: 0x36 IMAGE_REL_AMD64_ADDR64 .text (0)
+// CHECK: }
+
+main:
+ .file 0 "/" "test.c"
+ .loc 0 1 0
----------------
pogo59 wrote:
DWARF 5 defined file number 0 as the main source file. DWARF 4 doesn't have that, file numbers start at 1 and there isn't a distinguished "main" file. LMK if you need more detail.
https://github.com/llvm/llvm-project/pull/83773
More information about the llvm-commits
mailing list