From: Cherry Zhang Date: Fri, 20 Mar 2020 15:51:34 +0000 (-0400) Subject: [dev.link] cmd/internal/dwarf: add back some constant prefixes X-Git-Tag: go1.15beta1~679^2~51 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f652eb72b6b65a63572650de5b5c08cfcf65de6b;p=gostls13.git [dev.link] cmd/internal/dwarf: add back some constant prefixes 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 TryBot-Result: Gobot Gobot Reviewed-by: Than McIntosh --- diff --git a/src/cmd/internal/dwarf/dwarf.go b/src/cmd/internal/dwarf/dwarf.go index 62036aee2a..a17b574cdd 100644 --- a/src/cmd/internal/dwarf/dwarf.go +++ b/src/cmd/internal/dwarf/dwarf.go @@ -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."