From: Russ Cox Date: Mon, 24 May 2010 21:30:51 +0000 (-0700) Subject: libmach: skip __nl_symbol_ptr section on OS X X-Git-Tag: weekly.2010-05-27~30 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=84edc2e9807d6b331e2675279c7f17d1abc9b3a7;p=gostls13.git libmach: skip __nl_symbol_ptr section on OS X R=r CC=golang-dev https://golang.org/cl/1275042 --- diff --git a/src/libmach/executable.c b/src/libmach/executable.c index 1455b100dd..34da721519 100644 --- a/src/libmach/executable.c +++ b/src/libmach/executable.c @@ -1177,6 +1177,8 @@ machdotout(int fd, Fhdr *fp, ExecHdr *hp) goto bad; } sect++; + if (strcmp(sect->sectname, "__nl_symbol_ptr") == 0) + sect++; if (strcmp(sect->sectname, "__bss") == 0) { bsssize = swav(sect->size); } else {