diff options
| author | Paul E. Murphy <murp@ibm.com> | 2023-05-22 10:38:12 -0500 |
|---|---|---|
| committer | Paul Murphy <murp@ibm.com> | 2023-05-23 21:46:00 +0000 |
| commit | 26f25692b8107f06a16dd103672ba4b5c3e4571f (patch) | |
| tree | c36aa86613bc0913972eecc09d92b15d8acf672f /src/debug/elf | |
| parent | 94c75232fbe4e24c38f728fd05e0a151893fb2c5 (diff) | |
| download | go-26f25692b8107f06a16dd103672ba4b5c3e4571f.tar.xz | |
debug/elf: define R_PPC64_REL24_P9NOTOC
This relocation is not (yet?) defined in ELFv2, but has been added to
gnu gas a couple years ago. It is the same reloc as
R_PPC64_REL24_NOTOC, but hints power10 instructions should not be
emitted.
See binutils commit 7aba54da426b9999085d8f84e7896b8afdbb9ca6.
Fixes #60348
Change-Id: Ie953cd7bf1ffc621b498d4dbebb5de1231833c8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/496918
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/debug/elf')
| -rw-r--r-- | src/debug/elf/elf.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/debug/elf/elf.go b/src/debug/elf/elf.go index 8b064bd880..db84c7710f 100644 --- a/src/debug/elf/elf.go +++ b/src/debug/elf/elf.go @@ -2763,6 +2763,7 @@ const ( R_PPC64_PLTSEQ_NOTOC R_PPC64 = 121 R_PPC64_PLTCALL_NOTOC R_PPC64 = 122 R_PPC64_PCREL_OPT R_PPC64 = 123 + R_PPC64_REL24_P9NOTOC R_PPC64 = 124 R_PPC64_D34 R_PPC64 = 128 R_PPC64_D34_LO R_PPC64 = 129 R_PPC64_D34_HI30 R_PPC64 = 130 @@ -2926,6 +2927,7 @@ var rppc64Strings = []intName{ {121, "R_PPC64_PLTSEQ_NOTOC"}, {122, "R_PPC64_PLTCALL_NOTOC"}, {123, "R_PPC64_PCREL_OPT"}, + {124, "R_PPC64_REL24_P9NOTOC"}, {128, "R_PPC64_D34"}, {129, "R_PPC64_D34_LO"}, {130, "R_PPC64_D34_HI30"}, |
