]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/internal/dwarf: add back some constant prefixes
authorCherry Zhang <cherryyz@google.com>
Fri, 20 Mar 2020 15:51:34 +0000 (11:51 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 23 Mar 2020 14:38:30 +0000 (14:38 +0000)
They are still used by the old linker.

This is for introducing gating for the new object file format and
the new linker.

Change-Id: I97bb6ab4cc2c03f90f199c705d4c127e45ca07f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/224621
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/dwarf/dwarf.go

index 62036aee2add6cb89d59453d24517e641b63cea4..a17b574cdd8d97dd47c6d06e9aaebe3ff6102986 100644 (file)
@@ -18,9 +18,21 @@ import (
        "strings"
 )
 
+// TODO(go115newobj): clean up. Some constant prefixes here are no longer
+// needed in the new object files.
+
 // InfoPrefix is the prefix for all the symbols containing DWARF info entries.
 const InfoPrefix = "go.info."
 
+// RangePrefix is the prefix for all the symbols containing DWARF location lists.
+const LocPrefix = "go.loc."
+
+// RangePrefix is the prefix for all the symbols containing DWARF range lists.
+const RangePrefix = "go.range."
+
+// DebugLinesPrefix is the prefix for all the symbols containing DWARF debug_line information from the compiler.
+const DebugLinesPrefix = "go.debuglines."
+
 // ConstInfoPrefix is the prefix for all symbols containing DWARF info
 // entries that contain constants.
 const ConstInfoPrefix = "go.constinfo."