]> Cypherpunks repositories - gostls13.git/commit
debug/elf: support arm64 relocations
authorMichael Hudson-Doyle <michael.hudson@linaro.org>
Thu, 28 Aug 2014 03:18:56 +0000 (20:18 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 28 Aug 2014 03:18:56 +0000 (20:18 -0700)
commit299117eca0f28b6e379c4d5b7e43e2f13cf0cd36
tree72eff0f786e29a7ca4b4601c91683b8b6fb08714
parenta9b2651ade68733405cdc296d66d9b9d8ea68bf0
debug/elf: support arm64 relocations

This adds the minimal support for AArch64/arm64 relocations
needed to get cgo to work (when an isomorphic patch is applied
to gccgo) and a test.

This change uses the "AAarch64" name for the architecture rather
than the more widely accepted "arm64" because that's the name that
the relevant docs from ARM such as

   http://infocenter.arm.com/help/topic/com.arm.doc.ihi0056b/IHI0056B_aaelf64.pdf

all use.

Fixes #8533.

LGTM=iant
R=golang-codereviews, aram, gobot, iant, minux
CC=golang-codereviews
https://golang.org/cl/132000043
src/pkg/debug/elf/elf.go
src/pkg/debug/elf/file.go
src/pkg/debug/elf/file_test.go
src/pkg/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj [new file with mode: 0644]