1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:31:22 -06: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;