]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: skip __nl_symbol_ptr section on OS X
authorRuss Cox <rsc@golang.org>
Mon, 24 May 2010 21:30:51 +0000 (14:30 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 24 May 2010 21:30:51 +0000 (14:30 -0700)
R=r
CC=golang-dev
https://golang.org/cl/1275042

src/libmach/executable.c

index 1455b100dd216a9c21eee8cd02b38bd88dabb561..34da7215197a0f3ac87204b74158ae07f87eff78 100644 (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 {