gcc/libgo/go/runtime/pprof
Ian Lance Taylor cba8a572c2 re PR go/89172 (FAIL: runtime/pprof)
PR go/89172
    internal/cpu, runtime, runtime/pprof: handle function descriptors
    
    When using PPC64 ELF ABI v1 a function address is not a PC, but is the
    address of a function descriptor.  The first field in the function
    descriptor is the actual PC (see
    http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#FUNC-DES).
    The libbacktrace library knows about this, and libgo uses actual PC
    values consistently except for the helper function funcPC that appears
    in both runtime and runtime/pprof.
    
    This patch fixes funcPC by recording, in the internal/cpu package,
    whether function descriptors are being used.  We have to check for
    function descriptors using a C compiler check, because GCC can be
    configured using --with-abi to select the ELF ABI to use.
    
    Fixes https://gcc.gnu.org/PR89172
    
    Reviewed-on: https://go-review.googlesource.com/c/162978

From-SVN: r269266
2019-02-27 22:35:10 +00:00
..
internal/profile libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
testdata/mappingtest libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
elf.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
label_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
label.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
map.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
mprof_test.go compiler: move slice construction to callers of makeslice 2019-01-07 21:44:06 +00:00
pprof_test.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
pprof.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
proto_test.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
proto.go re PR go/89172 (FAIL: runtime/pprof) 2019-02-27 22:35:10 +00:00
protobuf.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
protomem_test.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
protomem.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
runtime_test.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00
runtime.go libgo: update to go1.9 2017-09-14 17:11:35 +00:00