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

Issue 88190043: code review 88190043: liblink, cmd/ld: reenable nosplit checking and test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rsc
Modified:
10 years, 11 months ago
Reviewers:
gobot, iant
CC:
golang-codereviews, iant, ality, r
Visibility:
Public.

Description

liblink, cmd/ld: reenable nosplit checking and test The new code is adapted from the Go 1.2 nosplit code, but it does not have the bug reported in issue 7623: g% go run nosplit.go g% go1.2 run nosplit.go BUG rejected incorrectly: main 0 call f; f 120 linker output: # _/tmp/go-test-nosplit021064539 main.main: nosplit stack overflow 120 guaranteed after split check in main.main 112 on entry to main.f -8 after main.f uses 120 g% Fixes issue 6931. Fixes issue 7623.

Patch Set 1 #

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

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

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

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

Total comments: 21

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

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

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

Patch Set 9 : diff -r 4873079c140c https://code.google.com/p/go/ #

Total comments: 8

Patch Set 10 : diff -r 4873079c140c https://code.google.com/p/go/ #

Patch Set 11 : diff -r 4873079c140c https://code.google.com/p/go/ #

Patch Set 12 : diff -r 4873079c140c https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -146 lines) Patch
M include/link.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -3 lines 0 comments Download
M src/cmd/5l/asm.c View 1 2 3 4 5 6 7 8 7 chunks +7 lines, -7 lines 0 comments Download
M src/cmd/6l/asm.c View 1 2 3 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/8l/asm.c View 1 2 3 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 2 3 6 7 8 5 chunks +7 lines, -3 lines 0 comments Download
M src/cmd/ld/dwarf.c View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/ld/ldelf.c View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -17 lines 0 comments Download
M src/cmd/ld/ldmacho.c View 1 6 7 8 1 chunk +3 lines, -16 lines 0 comments Download
M src/cmd/ld/ldpe.c View 1 6 7 8 1 chunk +2 lines, -14 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 7 8 9 4 chunks +73 lines, -58 lines 0 comments Download
M src/cmd/ld/pcln.c View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -5 lines 0 comments Download
M src/cmd/link/load.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -5 lines 0 comments Download
M src/cmd/link/testdata/autosection.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/cmd/link/testdata/autoweak.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/cmd/link/testdata/dead.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/cmd/link/testdata/hello.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/cmd/link/testdata/layout.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/cmd/link/testdata/pclntab.6 View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M src/liblink/asm5.c View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M src/liblink/asm6.c View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -4 lines 0 comments Download
M src/liblink/asm8.c View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -3 lines 0 comments Download
M src/liblink/obj6.c View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M src/liblink/objfile.c View 1 2 3 4 5 6 7 8 9 6 chunks +10 lines, -1 line 0 comments Download
M src/liblink/pcln.c View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M src/pkg/debug/goobj/read.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A test/nosplit.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +313 lines, -0 lines 0 comments Download

Messages

Total messages: 10
rsc
Hello golang-codereviews@googlegroups.com (cc: iant, r), I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-04-16 21:06:12 UTC) #1
iant
https://codereview.appspot.com/88190043/diff/70001/include/link.h File include/link.h (right): https://codereview.appspot.com/88190043/diff/70001/include/link.h#newcode234 include/link.h:234: R_CALL, // relocation for direct call The way this ...
10 years, 11 months ago (2014-04-16 21:29:08 UTC) #2
rsc
https://codereview.appspot.com/88190043/diff/70001/include/link.h File include/link.h (right): https://codereview.appspot.com/88190043/diff/70001/include/link.h#newcode234 include/link.h:234: R_CALL, // relocation for direct call On 2014/04/16 21:29:09, ...
10 years, 11 months ago (2014-04-16 22:59:15 UTC) #3
ality
iant@golang.org once said: > https://codereview.appspot.com/88190043/diff/70001/src/liblink/asm6.c#newcode2907 > src/liblink/asm6.c:2907: case_Zo_m64: > Where is case_Zo_m64 defined? Right there. ...
10 years, 11 months ago (2014-04-16 23:02:29 UTC) #4
rsc
https://codereview.appspot.com/88190043/diff/70001/src/liblink/asm6.c File src/liblink/asm6.c (right): https://codereview.appspot.com/88190043/diff/70001/src/liblink/asm6.c#newcode2907 src/liblink/asm6.c:2907: case_Zo_m64: On 2014/04/16 21:29:09, iant wrote: > Where is ...
10 years, 11 months ago (2014-04-16 23:11:19 UTC) #5
rsc
PTAL https://codereview.appspot.com/88190043/diff/70001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/88190043/diff/70001/src/cmd/ld/lib.c#newcode1130 src/cmd/ld/lib.c:1130: if(end < pcsp.nextpc) On 2014/04/16 22:59:16, rsc wrote: ...
10 years, 11 months ago (2014-04-17 00:28:00 UTC) #6
iant
LGTM https://codereview.appspot.com/88190043/diff/110002/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/88190043/diff/110002/src/cmd/ld/lib.c#newcode1038 src/cmd/ld/lib.c:1038: ctxt->cursym = s; The indentation looks wrong here ...
10 years, 11 months ago (2014-04-17 01:37:52 UTC) #7
rsc
For the record, this was not a waste of time. It found a real bug. ...
10 years, 11 months ago (2014-04-17 01:56:50 UTC) #8
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=96ec582487de *** liblink, cmd/ld: reenable nosplit checking and test The new code ...
10 years, 11 months ago (2014-04-17 02:08:06 UTC) #9
gobot
10 years, 11 months ago (2014-04-17 02:10:46 UTC) #10
Message was sent while issue was closed.
This CL appears to have broken the darwin-amd64 builder.
See http://build.golang.org/log/01bc014ac6b370028d603b6fd2f8a04bdb1bccdb
Sign in to reply to this message.

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