Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(680)

Issue 132000043: code review 132000043: debug/elf: support arm64 relocations

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by mwhudson
Modified:
10 years, 6 months ago
Reviewers:
iant
CC:
golang-codereviews, aram, gobot, iant, minux
Visibility:
Public.

Description

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 issue 8533.

Patch Set 1 #

Patch Set 2 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Patch Set 3 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Patch Set 4 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Patch Set 5 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Patch Set 6 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Total comments: 4

Patch Set 7 : diff -r 8f918b7db01b9ca6aec57bd67d58da9f1d734e2a https://code.google.com/p/go/ #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -44 lines) Patch
M src/pkg/debug/elf/elf.go View 1 2 3 4 3 chunks +295 lines, -43 lines 11 comments Download
M src/pkg/debug/elf/file.go View 1 2 3 4 5 6 3 chunks +49 lines, -1 line 0 comments Download
M src/pkg/debug/elf/file_test.go View 1 1 chunk +6 lines, -0 lines 0 comments Download
A src/pkg/debug/elf/testdata/go-relocation-test-gcc482-aarch64.obj View 1 Binary file 0 comments Download

Messages

Total messages: 14
mwhudson
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-21 09:37:45 UTC) #1
aram
FWIW, the GOOS for the WIP Go on arm64 target is arm64.
10 years, 6 months ago (2014-08-21 09:44:35 UTC) #2
aram
> FWIW, the GOOS for the WIP Go on arm64 target is arm64. I meant ...
10 years, 6 months ago (2014-08-21 09:53:11 UTC) #3
gobot
R=iant@golang.org (assigned by aram@mgk.ro)
10 years, 6 months ago (2014-08-21 09:54:40 UTC) #4
mwhudson
On 2014/08/21 09:53:11, aram wrote: > > FWIW, the GOOS for the WIP Go on ...
10 years, 6 months ago (2014-08-21 11:03:31 UTC) #5
minux
while you're here, why not add the full set of relocation values?
10 years, 6 months ago (2014-08-21 14:54:00 UTC) #6
mwhudson
On 2014/08/21 14:54:00, minux wrote: > while you're here, why not add the full set ...
10 years, 6 months ago (2014-08-21 20:26:44 UTC) #7
minux
https://codereview.appspot.com/132000043/diff/120001/src/pkg/debug/elf/elf.go File src/pkg/debug/elf/elf.go (right): https://codereview.appspot.com/132000043/diff/120001/src/pkg/debug/elf/elf.go#newcode14 src/pkg/debug/elf/elf.go:14: * "ELF for the ARM® 64-bit Architecture (AArch64)" (ARM ...
10 years, 6 months ago (2014-08-22 15:11:55 UTC) #8
mwhudson
ptal https://codereview.appspot.com/132000043/diff/120001/src/pkg/debug/elf/elf.go File src/pkg/debug/elf/elf.go (right): https://codereview.appspot.com/132000043/diff/120001/src/pkg/debug/elf/elf.go#newcode14 src/pkg/debug/elf/elf.go:14: * "ELF for the ARM® 64-bit Architecture (AArch64)" ...
10 years, 6 months ago (2014-08-25 01:48:07 UTC) #9
iant
Trivial nit: the first line of the CL description should be debug/elf: support arm64 relocations ...
10 years, 6 months ago (2014-08-25 02:26:03 UTC) #10
iant
It's fine with me if you split out the change adding the reloc numbers to ...
10 years, 6 months ago (2014-08-25 02:42:45 UTC) #11
mwhudson
https://codereview.appspot.com/132000043/diff/140001/src/pkg/debug/elf/elf.go File src/pkg/debug/elf/elf.go (right): https://codereview.appspot.com/132000043/diff/140001/src/pkg/debug/elf/elf.go#newcode784 src/pkg/debug/elf/elf.go:784: R_AARCH64_P32_ABS32 R_AARCH64 = 1 On 2014/08/25 02:42:44, iant wrote: ...
10 years, 6 months ago (2014-08-25 03:38:45 UTC) #12
iant
LGTM
10 years, 6 months ago (2014-08-28 03:14:28 UTC) #13
iant
10 years, 6 months ago (2014-08-28 03:19:01 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=50f9b7e05ec3 ***

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 issue 8533.

LGTM=iant
R=golang-codereviews, aram, gobot, iant, minux
CC=golang-codereviews
https://codereview.appspot.com/132000043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b