1
0
mirror of https://github.com/golang/go synced 2024-11-20 01:14:40 -07: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;
}
sect++;
if (strcmp(sect->sectname, "__nl_symbol_ptr") == 0)
sect++;
if (strcmp(sect->sectname, "__bss") == 0) {
bsssize = swav(sect->size);
} else {