1
0
mirror of https://github.com/golang/go synced 2024-10-03 05:11:21 -06:00

libmach: skip __nl_symbol_ptr section on OS X

R=r
CC=golang-dev
https://golang.org/cl/1275042
This commit is contained in:
Russ Cox 2010-05-24 14:30:51 -07:00
parent 5e253645d2
commit 84edc2e980

View File

@ -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 {