Skip to content

cmd/6l: No .debug_gdb_script section in ELF #7506

@gopherbot

Description

@gopherbot

by erik.westrup:

The resulting ELF produced does not contain a ".debug_gdb_script" section.
Thus no Go runtime support for Go is loaded when running the ELF in GDB.


> What does 'go version' print?

go version devel +e3ff5d42017d Mon Mar 10 07:57:58 2014 +0100 linux/amd64

> What steps reproduce the problem?
1. $ hg clone -u release https://code.google.com/p/go
   $ cd go
   $ hg update default
   $ src/all.bash
2. $ go build hello.go
3. $ readelf -S hello | grep -c debug_gdb_script
   0

> What happened?
No debug gdb script path included.

> What should have happened instead?
$ readelf -S hello | grep -c debug_gdb_script
1
which happens on the release-branch.go1.2 branch.


> Please provide any additional information below.
Has the way of loading the debug_gdb_script changed intentionally?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions