Skip to content

cmd/link: empty __debug_ranges section on darwin #21945

@aarzilli

Description

@aarzilli

This issue was initially discussed here: https://github.com/derekparker/delve/issues/964

When compiling the tests of https://github.com/deasmi/terraform-provider-libvirt/tree/graphicsandvnc with optimizations disabled the resulting binary has a 4kb __debug_ranges section that consists almost entirely of zeroes, with the exception of a few bytes at the end of the section.

Output of go test -x here: https://www.dropbox.com/s/kmn2g8ibsd5q9po/gotest.txt?dl=0

What version of Go are you using (go version)?

go version go1.9 darwin/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions