]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] 9l: make R_CALLPOWER like ELF's R_PPC64_REL24
authorAustin Clements <austin@google.com>
Tue, 25 Nov 2014 21:00:25 +0000 (16:00 -0500)
committerAustin Clements <austin@google.com>
Tue, 25 Nov 2014 21:00:25 +0000 (16:00 -0500)
commit6f755f2f8f4665d44745b4065cd54a90eba0bde9
treebd43607be8d4108a57d1a9b8346823a01ae6e6ba
parentc8af6de2e8f315a6e8282004e8e90d9c567531ea
[dev.cc] 9l: make R_CALLPOWER like ELF's R_PPC64_REL24

These accomplished the same thing, but R_CALLPOWER expected
the whole instruction to be in the addend (and completely
overwrote what was in the text section), while R_PPC64_REL24
overwrites only bits 6 through 24 of whatever was in the text
section.  Make R_CALLPOWER work like R_PPC64_REL24 to ease the
implementation of dynamic linking.

LGTM=rsc
R=rsc
CC=golang-codereviews, minux
https://golang.org/cl/177430043
src/cmd/9l/asm.c
src/liblink/asm9.c