Commit 84edc2e9 authored by Russ Cox's avatar Russ Cox

libmach: skip __nl_symbol_ptr section on OS X

R=r
CC=golang-dev
https://golang.org/cl/1275042
parent 5e253645
...@@ -1177,6 +1177,8 @@ machdotout(int fd, Fhdr *fp, ExecHdr *hp) ...@@ -1177,6 +1177,8 @@ machdotout(int fd, Fhdr *fp, ExecHdr *hp)
goto bad; goto bad;
} }
sect++; sect++;
if (strcmp(sect->sectname, "__nl_symbol_ptr") == 0)
sect++;
if (strcmp(sect->sectname, "__bss") == 0) { if (strcmp(sect->sectname, "__bss") == 0) {
bsssize = swav(sect->size); bsssize = swav(sect->size);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment