From f652eb72b6b65a63572650de5b5c08cfcf65de6b Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Fri, 20 Mar 2020 11:51:34 -0400 Subject: [PATCH] [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 --- src/cmd/internal/dwarf/dwarf.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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." -- 2.50.0