]> Cypherpunks repositories - gostls13.git/commit
6l: work with OS X nm/otool
authorJim McGrath <jimmc2@gmail.com>
Tue, 12 Oct 2010 20:52:17 +0000 (16:52 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 12 Oct 2010 20:52:17 +0000 (16:52 -0400)
commit8a1b2e59ef553228a60d6799a2e001761e1e8ca8
tree00f5a1d223cfeb1b78866a899edc98a29ebb9056
parent12da5a90e0e51f8c74792ce52f4ec627ae0b8124
6l: work with OS X nm/otool

6l was skipping emitting the (2 byte) symbol table if there were no imported or exported
symbols. You can't just drop the symbol table entirely - the linker dies if you have
a linkedit section but no table. You can omit the linkedit section or both the linkedit
and the dlyd parts in the right circumstances, but that seems much more risky to me.

R=rsc
CC=golang-dev
https://golang.org/cl/2421042
src/cmd/ld/macho.c