diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-09-07 12:45:49 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-09-07 11:07:39 +0000 |
| commit | f64c0b2a281fd1587c2e2e1c488cec0fa5de6e3e (patch) | |
| tree | e7f36b29e4259ab4550e8569d64eecd2c77e8012 /src/debug/elf | |
| parent | 73b8e5f81b992597462d39978bad09c0f88a530e (diff) | |
| download | go-f64c0b2a281fd1587c2e2e1c488cec0fa5de6e3e.tar.xz | |
debug/elf: add R_RISCV_32_PCREL relocation
This were missed in CL 107339 as it is not documented (yet) in
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
But binutils already uses it. See
https://github.com/riscv/riscv-elf-psabi-doc/issues/36
Change-Id: I1b084cbf70eb6ac966136bed1bb654883a97b6a9
Reviewed-on: https://go-review.googlesource.com/134015
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
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 07c03e7999..96a67ce732 100644 --- a/src/debug/elf/elf.go +++ b/src/debug/elf/elf.go @@ -2424,6 +2424,7 @@ const ( R_RISCV_SET8 R_RISCV = 54 /* Local label subtraction */ R_RISCV_SET16 R_RISCV = 55 /* Local label subtraction */ R_RISCV_SET32 R_RISCV = 56 /* Local label subtraction */ + R_RISCV_32_PCREL R_RISCV = 57 /* 32-bit PC relative */ ) var rriscvStrings = []intName{ @@ -2480,6 +2481,7 @@ var rriscvStrings = []intName{ {54, "R_RISCV_SET8"}, {55, "R_RISCV_SET16"}, {56, "R_RISCV_SET32"}, + {57, "R_RISCV_32_PCREL"}, } func (i R_RISCV) String() string { return stringName(uint32(i), rriscvStrings, false) } |
