aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-05-24 14:30:51 -0700
committerRuss Cox <rsc@golang.org>2010-05-24 14:30:51 -0700
commit84edc2e9807d6b331e2675279c7f17d1abc9b3a7 (patch)
tree8739884e4767b581aa32e7a8274dd56e44c2199e
parent5e253645d27dc3ef369a84cb7e9833daa31f1876 (diff)
downloadgo-84edc2e9807d6b331e2675279c7f17d1abc9b3a7.tar.gz
go-84edc2e9807d6b331e2675279c7f17d1abc9b3a7.zip
libmach: skip __nl_symbol_ptr section on OS X
R=r CC=golang-dev https://golang.org/cl/1275042
-rw-r--r--src/libmach/executable.c2
1 files changed, 2 insertions, 0 deletions
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 {