mirror of
https://github.com/golang/go
synced 2024-11-26 16:46:58 -07:00
cmd/link: add relocs type for mips64x
The race detector of llvm adds four reloc types even with -fPIC elf.R_MIPS_CALL16 elf.R_MIPS_GPREL32 elf.R_MIPS_64 elf.R_MIPS_GOT_DISP Change-Id: If73119dcba14ef74395273eb680f52a0aa853217 Reviewed-on: https://go-review.googlesource.com/c/go/+/270297 Trust: Meng Zhuo <mzh@golangcn.org> Run-TryBot: Meng Zhuo <mzh@golangcn.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
60b500dc6c
commit
31df4e3fcd
@ -983,7 +983,11 @@ func relSize(arch *sys.Arch, pn string, elftype uint32) (uint8, error) {
|
|||||||
MIPS64 | uint32(elf.R_MIPS_GPREL16)<<16,
|
MIPS64 | uint32(elf.R_MIPS_GPREL16)<<16,
|
||||||
MIPS64 | uint32(elf.R_MIPS_GOT_PAGE)<<16,
|
MIPS64 | uint32(elf.R_MIPS_GOT_PAGE)<<16,
|
||||||
MIPS64 | uint32(elf.R_MIPS_JALR)<<16,
|
MIPS64 | uint32(elf.R_MIPS_JALR)<<16,
|
||||||
MIPS64 | uint32(elf.R_MIPS_GOT_OFST)<<16:
|
MIPS64 | uint32(elf.R_MIPS_GOT_OFST)<<16,
|
||||||
|
MIPS64 | uint32(elf.R_MIPS_CALL16)<<16,
|
||||||
|
MIPS64 | uint32(elf.R_MIPS_GPREL32)<<16,
|
||||||
|
MIPS64 | uint32(elf.R_MIPS_64)<<16,
|
||||||
|
MIPS64 | uint32(elf.R_MIPS_GOT_DISP)<<16:
|
||||||
return 4, nil
|
return 4, nil
|
||||||
|
|
||||||
case S390X | uint32(elf.R_390_8)<<16:
|
case S390X | uint32(elf.R_390_8)<<16:
|
||||||
|
Loading…
Reference in New Issue
Block a user