summaryrefslogtreecommitdiff
path: root/src/libmach
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
commit0183c20609c01ef6a34a076e340af938e79e2a32 (patch)
tree53b6174cf3b83f73e2fe9249f61abeb0bdf3a944 /src/libmach
parent23500e507c83e48cbe9c519d0512955634645434 (diff)
downloadgo-0183c20609c01ef6a34a076e340af938e79e2a32.tar.gz
libmach: skip __nl_symbol_ptr section on OS X
R=r CC=golang-dev http://codereview.appspot.com/1275042
Diffstat (limited to 'src/libmach')
-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 1455b100d..34da72151 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 {