• Austin Clements's avatar
    runtime: avoid variable/function alias on runtime._cgo_panic_internal · 6096b85b
    Austin Clements authored
    The symbol runtime._cgo_panic_internal is defined both as a function
    in package runtime and as a (linknamed) variable in package
    runtime/cgo. Since we're introducing function ABIs, this is going to
    cause problems with resolving the ABI-marked function symbol with the
    unmarked data symbol. It's also confusing.
    
    Fix this by declaring runtime._cgo_panic_internal as a function in
    runtime/cgo as well and extracting the PC from the function object.
    
    For #27539.
    
    Change-Id: I148a458a600cf9e57791cf4cbe92e79bddbf58d4
    Reviewed-on: https://go-review.googlesource.com/c/146821
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    6096b85b
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...