]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: support for relocation variants
authorAustin Clements <austin@google.com>
Mon, 22 Dec 2014 19:42:37 +0000 (14:42 -0500)
committerAustin Clements <austin@google.com>
Wed, 7 Jan 2015 20:35:37 +0000 (20:35 +0000)
commitac5a1ac318efb7890b25cf614a0cd5b3e52c74e3
tree70fd2a7d0448da72a22fd98278839daa69dc5110
parentfcdffb3f334ae4bfa5fda2c01b3cc51c3c4e5715
cmd/ld: support for relocation variants

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/2005
Reviewed-by: Russ Cox <rsc@golang.org>
include/link.h
src/cmd/5l/asm.c
src/cmd/5l/l.h
src/cmd/6l/asm.c
src/cmd/6l/l.h
src/cmd/8l/asm.c
src/cmd/8l/l.h
src/cmd/9l/asm.c
src/cmd/9l/l.h
src/cmd/ld/data.c