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

Issue 10271047: code review 10271047: cmd/5l,runtime: External linking support on linux-arm (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by elias.naur
Modified:
10 years, 7 months ago
Reviewers:
minux1, capnm, rsc
CC:
golang-dev
Visibility:
Public.

Description

cmd/5l,runtime: External linking support on linux-arm This CL adds support for -linkmode external to 5l. For 5l itself, use addrel to allow for D_CALL relocations to be handled by the host linker. Of the cases listed in rsc's comment in issue 4069, only case 5 and 63 needed an update. One of the TODO: addrel cases was since replaced, and the rest of the cases are either covered by indirection through addpool (cases with LTO or LFROM flags) or stubs (case 74). The addpool cases are covered because addpool emits AWORD instructions, which in turn are handled by case 11. In the runtime, change the argv argument in the rt0* functions slightly to be a pointer to the argv list, instead of relying on a particular location of argv. Depends on CL 10499043 Fixes issue 5590.

Patch Set 1 #

Patch Set 2 : diff -r 52d53d0e177e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 52d53d0e177e https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r af0c031528c3076cb822774cf07376e1c0498009 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 0e1259745eef65666c29c07c24b38bbc4516984d https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r d3f99f091748edbde50f28c0064cab1eea0520c9 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r e7d93594bac0f5a663728bb5e185e163772bc4ab https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r cc6d9589262e8f88e8e1a8a424f143dde76d68e0 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -31 lines) Patch
M src/cmd/5l/5.out.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5l/asm.c View 1 2 3 4 5 6 7 6 chunks +77 lines, -7 lines 0 comments Download
M src/cmd/5l/l.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5l/noop.c View 1 2 3 4 5 6 7 3 chunks +33 lines, -1 line 0 comments Download
M src/cmd/5l/obj.c View 1 4 6 2 chunks +15 lines, -9 lines 0 comments Download
M src/cmd/5l/optab.c View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/5l/span.c View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M src/cmd/8l/asm.c View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 4 6 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/ld/elf.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/os_linux_arm.c View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M src/pkg/runtime/rt0_freebsd_arm.s View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/rt0_linux_arm.s View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 1 comment Download
M src/pkg/runtime/rt0_netbsd_arm.s View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/run.bash View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8
elias.naur
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 10 months ago (2013-06-14 15:40:51 UTC) #1
elias.naur
ping.
10 years, 9 months ago (2013-07-04 10:01:09 UTC) #2
rsc
10 years, 8 months ago (2013-07-29 17:28:24 UTC) #3
rsc
LGTM I will submit this tonight after testing on my ARM Chromebook. https://codereview.appspot.com/10271047/diff/23001/src/pkg/runtime/rt0_linux_arm.s File src/pkg/runtime/rt0_linux_arm.s ...
10 years, 8 months ago (2013-08-13 19:05:49 UTC) #4
elias.naur
On 2013/08/13 19:05:49, rsc wrote: > LGTM > > I will submit this tonight after ...
10 years, 8 months ago (2013-08-13 22:09:19 UTC) #5
elias.naur
On 2013/08/13 22:09:19, elias.naur wrote: > On 2013/08/13 19:05:49, rsc wrote: > > LGTM > ...
10 years, 8 months ago (2013-08-14 07:06:18 UTC) #6
capnm
On 2013/08/14 07:06:18, elias.naur wrote: > On 2013/08/13 22:09:19, elias.naur wrote: > > On 2013/08/13 ...
10 years, 8 months ago (2013-08-14 09:59:34 UTC) #7
rsc
10 years, 7 months ago (2013-09-03 19:06:41 UTC) #8
This was submitted as part of 12871044.
Sign in to reply to this message.

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