1
0
mirror of https://github.com/golang/go synced 2024-10-04 06:31:22 -06:00
go/src/cmd/link
Russ Cox 5e8c922625 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 #6931.
Fixes #7623.

LGTM=iant
R=golang-codereviews, iant, ality
CC=golang-codereviews, r
https://golang.org/cl/88190043
2014-04-16 22:08:00 -04:00
..
testdata liblink, cmd/ld: reenable nosplit checking and test 2014-04-16 22:08:00 -04:00
auto_test.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
auto.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
dead_test.go cmd/link: implement dead code removal 2014-01-13 23:08:10 -05:00
dead.go cmd/link: implement dead code removal 2014-01-13 23:08:10 -05:00
debug.go cmd/link: intial skeleton of linker written in Go 2014-01-09 19:29:10 -05:00
hex_test.go cmd/link: replace golden binary files with hex dumps 2014-01-13 23:07:40 -05:00
layout_test.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
layout.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
link_test.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
load.go liblink, cmd/ld: reenable nosplit checking and test 2014-04-16 22:08:00 -04:00
macho_test.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
macho.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
main.go cmd/link: intial skeleton of linker written in Go 2014-01-09 19:29:10 -05:00
pclntab_test.go cmd/link: pclntab generation 2014-01-21 13:47:47 -05:00
pclntab.go liblink: remove arch-specific constants from file format 2014-04-14 15:54:20 -04:00
prog_test.go cmd/link: change cloneProg to return the cloned value 2014-02-18 17:59:44 -08:00
prog.go cmd/link: pclntab generation 2014-01-21 13:47:47 -05:00
runtime.go cmd/link: pclntab generation 2014-01-21 13:47:47 -05:00
scan.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00
util.go cmd/link: intial skeleton of linker written in Go 2014-01-09 19:29:10 -05:00
write.go cmd/link: implement and test automatic symbols 2014-01-13 23:07:57 -05:00