• Austin Clements's avatar
    cmd/ld: support for relocation variants · ac5a1ac3
    Austin Clements authored
    Most ppc64 relocations come in six or more variants where the basic
    relocation formula is the same, but which bits of the computed value
    are installed where changes.  Introduce the concept of "variants" for
    internal relocations to support this.  Since this applies to
    architecture-independent relocation types like R_PCREL, we do this in
    relocsym.
    
    Currently there is only an identity variant.  A later CL that adds
    support for ppc64 ELF relocations will introduce more.
    
    Change-Id: I0c5f0e7dbe5beece79cd24fe36267d37c52f1a0c
    Reviewed-on: https://go-review.googlesource.com/2005Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    ac5a1ac3
l.h 3.03 KB