diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-04-15 10:14:57 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-16 00:01:16 +0000 |
commit | 315b6ae682a2a4e7718924a45b8b311a0fe10043 (patch) | |
tree | 9922319068c62fb2d2d60a759be7febf92334f5c /src/debug | |
parent | 1488bb6c4c6487f9ef3c6d59a84a29fea9ec9266 (diff) | |
download | go-315b6ae682a2a4e7718924a45b8b311a0fe10043.tar.gz go-315b6ae682a2a4e7718924a45b8b311a0fe10043.zip |
debug/elf: define non-standard but well-known symbol types
Fixes #66836
Change-Id: I603faca2acd2bcffabbcaca8b8670d46387d2a5b
Reviewed-on: https://go-review.googlesource.com/c/go/+/578995
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/elf/elf.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/debug/elf/elf.go b/src/debug/elf/elf.go index b97ddbf7cf..cecda61ed6 100644 --- a/src/debug/elf/elf.go +++ b/src/debug/elf/elf.go @@ -1287,6 +1287,11 @@ const ( STT_HIOS SymType = 12 /* specific semantics. */ STT_LOPROC SymType = 13 /* reserved range for processor */ STT_HIPROC SymType = 15 /* specific semantics. */ + + /* Non-standard symbol types. */ + STT_RELC SymType = 8 /* Complex relocation expression. */ + STT_SRELC SymType = 9 /* Signed complex relocation expression. */ + STT_GNU_IFUNC SymType = 10 /* Indirect code object. */ ) var sttStrings = []intName{ @@ -1297,6 +1302,8 @@ var sttStrings = []intName{ {4, "STT_FILE"}, {5, "STT_COMMON"}, {6, "STT_TLS"}, + {8, "STT_RELC"}, + {9, "STT_SRELC"}, {10, "STT_LOOS"}, {12, "STT_HIOS"}, {13, "STT_LOPROC"}, |