• Russ Cox's avatar
    liblink, cmd/ld: reenable nosplit checking and test · 5e8c9226
    Russ Cox authored
    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
    5e8c9226
Name
Last commit
Last update
..
testdata Loading commit data...
auto.go Loading commit data...
auto_test.go Loading commit data...
dead.go Loading commit data...
dead_test.go Loading commit data...
debug.go Loading commit data...
hex_test.go Loading commit data...
layout.go Loading commit data...
layout_test.go Loading commit data...
link_test.go Loading commit data...
load.go Loading commit data...
macho.go Loading commit data...
macho_test.go Loading commit data...
main.go Loading commit data...
pclntab.go Loading commit data...
pclntab_test.go Loading commit data...
prog.go Loading commit data...
prog_test.go Loading commit data...
runtime.go Loading commit data...
scan.go Loading commit data...
util.go Loading commit data...
write.go Loading commit data...