Skip to content

Commit abc3d2c

Browse files
limeidanabner-chenc
authored andcommitted
cmd/internal/objabi, cmd/link/internal: add new relocations used in internal linking
Change-Id: I1b7c258f0ea3b847a92ccd6644b653e11e7a5ef0 Reviewed-on: https://go-review.googlesource.com/c/go/+/555115 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: abner chenc <[email protected]> Reviewed-by: Qiqi Huang <[email protected]> Reviewed-by: sophie zhao <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 03e5d83 commit abc3d2c

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

src/cmd/internal/objabi/reloctype.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,17 @@ const (
348348
R_LOONG64_GOT_HI
349349
R_LOONG64_GOT_LO
350350

351+
// 64-bit in-place addition.
352+
R_LOONG64_ADD64
353+
// 64-bit in-place subtraction.
354+
R_LOONG64_SUB64
355+
356+
// R_JMP16LOONG64 resolves to 18-bit PC-relative target address of a JMP instructions.
357+
R_JMP16LOONG64
358+
359+
// R_JMP21LOONG64 resolves to 23-bit PC-relative target address of a JMP instructions.
360+
R_JMP21LOONG64
361+
351362
// R_JMPLOONG64 resolves to non-PC-relative target address of a JMP instruction,
352363
// by encoding the address into the instruction.
353364
R_JMPLOONG64

src/cmd/internal/objabi/reloctype_string.go

Lines changed: 14 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)