Skip to content

Commit

Permalink
liblink: fix cmd/ld -X flag
Browse files Browse the repository at this point in the history
This fixes the test/linkx.go test, which does not run by default.
(Issue 4139 is about fixing that.)

Fixes #8806.

LGTM=r
R=golang-codereviews, r
CC=bradfitz, golang-codereviews, iant
https://golang.org/cl/145420043
  • Loading branch information
rsc committed Sep 26, 2014
1 parent 6d760fb commit df781cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liblink/objfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ readsym(Link *ctxt, Biobuf *f, char *pkg, char *pn)
typ = rdsym(ctxt, f, pkg);
if(typ != nil) // if bss sym defined multiple times, take type from any one def
s->gotype = typ;
if(dup != nil && typ != nil)
dup->gotype = typ;
rddata(f, &s->p, &s->np);
s->maxp = s->np;
n = rdint(f);
Expand Down

0 comments on commit df781cc

Please sign in to comment.