aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2018-04-06 21:02:01 -0400
committerCherry Zhang <cherryyz@google.com>2018-04-11 17:59:58 +0000
commit4af08e7a13f2423f689c74d0c0ed79165b639e1e (patch)
tree0d444d00f1610e98eb34055f1be6fa0fe87b6120 /src/database/sql/sql.go
parentea5825b0b64e1a017a76eac0ad734e11ff557c8e (diff)
downloadgo-4af08e7a13f2423f689c74d0c0ed79165b639e1e.tar.xz
cmd/link: set S_ATTR_PURE_INSTRUCTIONS bit for text section on darwin
Mac otool and llvm-objdump distinguishes a Mach-O section is text or data by looking at S_ATTR_PURE_INSTRUCTIONS bit. Without this bit it thinks our function symbols are data, not functions. Set this bit for text section to make otool/objdump happy. Fixes #24706. Change-Id: I5236482cb9a72474c23fbea0f35d5b5cc8491ea4 Reviewed-on: https://go-review.googlesource.com/105256 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions