1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:54:44 -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"); diag("too many loads");
errorexit(); errorexit();
} }
if(macho64 && (ndata & 1))
ndata++;
l = &load[nload++]; l = &load[nload++];
l->type = type; l->type = type;
l->ndata = ndata; l->ndata = ndata;