From 315b6ae682a2a4e7718924a45b8b311a0fe10043 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 15 Apr 2024 10:14:57 -0700 Subject: 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 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui --- src/debug/elf/elf.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/debug/elf') 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"}, -- cgit v1.3