]> Cypherpunks repositories - gostls13.git/commitdiff
6l: fix Mach-O LC_RPATH
authorJim McGrath <jimmc2@gmail.com>
Mon, 11 Oct 2010 18:39:41 +0000 (14:39 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Oct 2010 18:39:41 +0000 (14:39 -0400)
Fixes #1177.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2387042

src/cmd/ld/macho.c

index b3b1f8c49739c06c77248f1a6a03f9ebd2bd52ed..63668a81ddccba6d5544e15c708a86aeb8521c39 100644 (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;