Skip to content

Commit 315b6ae

Browse files
ianlancetaylorgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 1488bb6 commit 315b6ae

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

api/next/66836.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pkg debug/elf, const STT_GNU_IFUNC = 10 #66836
2+
pkg debug/elf, const STT_GNU_IFUNC SymType #66836
3+
pkg debug/elf, const STT_RELC = 8 #66836
4+
pkg debug/elf, const STT_RELC SymType #66836
5+
pkg debug/elf, const STT_SRELC = 9 #66836
6+
pkg debug/elf, const STT_SRELC SymType #66836
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Now defines the symbol type constants [STT_RELC], [STT_SRELC], and
2+
[STT_GNU_IFUNC].

src/debug/elf/elf.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,11 @@ const (
12871287
STT_HIOS SymType = 12 /* specific semantics. */
12881288
STT_LOPROC SymType = 13 /* reserved range for processor */
12891289
STT_HIPROC SymType = 15 /* specific semantics. */
1290+
1291+
/* Non-standard symbol types. */
1292+
STT_RELC SymType = 8 /* Complex relocation expression. */
1293+
STT_SRELC SymType = 9 /* Signed complex relocation expression. */
1294+
STT_GNU_IFUNC SymType = 10 /* Indirect code object. */
12901295
)
12911296

12921297
var sttStrings = []intName{
@@ -1297,6 +1302,8 @@ var sttStrings = []intName{
12971302
{4, "STT_FILE"},
12981303
{5, "STT_COMMON"},
12991304
{6, "STT_TLS"},
1305+
{8, "STT_RELC"},
1306+
{9, "STT_SRELC"},
13001307
{10, "STT_LOOS"},
13011308
{12, "STT_HIOS"},
13021309
{13, "STT_LOPROC"},

0 commit comments

Comments
 (0)