1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:04:40 -07:00

6l: fix Mach-O LC_RPATH

Fixes #1177.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2387042
This commit is contained in:
Jim McGrath 2010-10-11 14:39:41 -04:00 committed by Russ Cox
parent e35aff7205
commit 0f6926474f

View File

@ -47,6 +47,10 @@ newMachoLoad(uint32 type, uint32 ndata)
diag("too many loads");
errorexit();
}
if(macho64 && (ndata & 1))
ndata++;
l = &load[nload++];
l->type = type;
l->ndata = ndata;