Skip to content

cmd/ld: handle ElfSymBindWeak #4273

@gopherbot

Description

@gopherbot

by kuangche:

What steps will reproduce the problem?
1. cd src; sh all.bash

What is the expected output?
Build ok without error

What do you see instead?
# ../misc/cgo/test
# testmain
/tmp/go-build734041700/_/home/data/repos/hg/go/misc/cgo/test/_test/_/home/data/repos/hg/go/misc/cgo/test.a(_all.o):
malformed elf file: compilerrt_abort_impl: invalid symbol binding 2
FAIL    _/home/data/repos/hg/go/misc/cgo/test [build failed]


Which operating system are you using?
FreeBSD 10.0-CURRENT r239050 (Tue Aug  7 23:30:58 CST 2012) amd64


Please provide any additional information below.
Via hg bisect, I found this issue was introduced since 
13896   5334356f42b3   2012-08-17 03:42 +0800   minux
  cmd/go: new cgo build procedure

Please let me know what additional information you need.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions