]> Cypherpunks repositories - gostls13.git/commitdiff
debug/elf: define non-standard but well-known symbol types
authorIan Lance Taylor <iant@golang.org>
Mon, 15 Apr 2024 17:14:57 +0000 (10:14 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 16 Apr 2024 00:01:16 +0000 (00:01 +0000)
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>
api/next/66836.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/debug/elf/66836.md [new file with mode: 0644]
src/debug/elf/elf.go

diff --git a/api/next/66836.txt b/api/next/66836.txt
new file mode 100644 (file)
index 0000000..07e87a7
--- /dev/null
@@ -0,0 +1,6 @@
+pkg debug/elf, const STT_GNU_IFUNC = 10 #66836
+pkg debug/elf, const STT_GNU_IFUNC SymType #66836
+pkg debug/elf, const STT_RELC = 8 #66836
+pkg debug/elf, const STT_RELC SymType #66836
+pkg debug/elf, const STT_SRELC = 9 #66836
+pkg debug/elf, const STT_SRELC SymType #66836
diff --git a/doc/next/6-stdlib/99-minor/debug/elf/66836.md b/doc/next/6-stdlib/99-minor/debug/elf/66836.md
new file mode 100644 (file)
index 0000000..4aad579
--- /dev/null
@@ -0,0 +1,2 @@
+Now defines the symbol type constants [STT_RELC], [STT_SRELC], and
+[STT_GNU_IFUNC].
index b97ddbf7cfe8927b6084ced282216e966c41a700..cecda61ed6e8331f2bb767eb9fde5fc9f86654ff 100644 (file)
@@ -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"},