• erifan01's avatar
    cmd/link: increase the reserved space for ELF relocations · 3b37ff45
    erifan01 authored
    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: default avatarIan Lance Taylor <iant@golang.org>
    3b37ff45
pe.go 41.2 KB