]> Cypherpunks repositories - gostls13.git/commit
cmd/link: increase the reserved space for ELF relocations
authorerifan01 <eric.fang@arm.com>
Tue, 16 Apr 2019 02:49:09 +0000 (02:49 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Apr 2019 23:31:28 +0000 (23:31 +0000)
commit3b37ff453edd9664045e656d1c02e63703517399
treeff9554f43a8664a7fd851021e08c3995dc85756a
parentb5946ed48d75332ba95962a181a28bb6b203459f
cmd/link: increase the reserved space for ELF relocations

Currently the offset values of ELF relocations and Macho relocations
are 256 and 512 respectively, which means that the space reserved for
ELF relocations is only 256. But AARCH64 has more than 256 ELF relocation
types, in fact the maximum AARCH64 ELF relocation type recorded in file
src/debug/elf/elf.go is 1032 currently. So this CL increases the offset
of Macho relocations to 2048 to leave enough space for AARCH64 ELF
relocations.

Change-Id: I784ac38aeb3e102ac7825f6d621086849c8d3146
Reviewed-on: https://go-review.googlesource.com/c/go/+/172497
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/objabi/util.go
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/loadelf/ldelf.go
src/cmd/link/internal/loadmacho/ldmacho.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/s390x/asm.go
src/cmd/link/internal/sym/reloc.go
src/cmd/link/internal/x86/asm.go