]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link/internal/loadelf: support additional ELF relocations on mips64
authorJoel Sing <joel@sing.id.au>
Mon, 7 Dec 2020 17:23:36 +0000 (04:23 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 11 Dec 2020 08:18:17 +0000 (08:18 +0000)
commite508c1c67b02dceea146ce3472c0f8ce9e60632c
tree91e171da7b6e4b71ccb5640eae3c75a09677466c
parent58e381b0b22352dda355f6d95fa101b773766c72
cmd/link/internal/loadelf: support additional ELF relocations on mips64

LLVM on openbsd/mips64 generates R_MIPS_GOT_HI16 and R_MIPS_GOT_LO16 relocations,
so teach cmd/link/internal/loadelf about both of these.

Updates #43005

Change-Id: Ic45ea8b901d44dcbdbf355411ee434dcd7670a92
Reviewed-on: https://go-review.googlesource.com/c/go/+/275894
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/loadelf/ldelf.go