• Lynn Boger's avatar
    runtime: use -buildmode=pie in testCgoPprofPIE instead of -extldflags=-pie · 58de9f35
    Lynn Boger authored
    Errors occur in runtime test testCgoPprofPIE when the test
    is built by passing -pie to the external linker with code
    that was not built as PIC. This occurs on ppc64le because
    non-PIC is the default, and fails only on newer distros
    where the address range used for programs is high enough
    to cause relocation overflow. This test should be built
    with -buildmode=pie since that correctly generates PIC
    with -pie.
    
    Related issues are #21954 and #22126.
    
    Updates #22459
    
    Change-Id: Ib641440bc9f94ad2b97efcda14a4b482647be8f7
    Reviewed-on: https://go-review.googlesource.com/73970
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    58de9f35
crash_cgo_test.go 11.2 KB