Skip to content

cmd/ld: A program cannot run when linker flag "-s" is used. #6245

@gopherbot

Description

@gopherbot

by lubos.pintes:

When I build a program with -ldflags "-s", and then run it, the following
error is generated:
runtime: function symbol table header: 0x0x0 0x0x0
fatal error: invalid function symbol table

OSis Windows 7 64-bit, Go built from source as 32-bit application.
go version devel +bb2db1e233b2 Sun Aug 25 23:50:44 2013 +1000 windows/386

Also tried with several random previous builds.

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