Commits

minux committed c33b9da

cmd/ld: fix build for ARMv5.
Credit goes to Dave Cheney for debugging the issue.

LGTM=dave, rsc
R=dave, rsc
CC=golang-codereviews
https://codereview.appspot.com/67820043

Committer: Dave Cheney <dave@cheney.net>

Comments (0)

Files changed (1)

src/cmd/ld/data.c

 
 	for(r=s->r; r<s->r+s->nr; r++) {
 		if(r->sym != S && r->sym->type == SDYNIMPORT || r->type >= 256) {
-			if(!r->sym->reachable)
+			if(r->sym != S && !r->sym->reachable)
 				diag("internal inconsistency: dynamic symbol %s is not reachable.", r->sym->name);
 			adddynrel(s, r);
 		}