]> Cypherpunks repositories - gostls13.git/commit
cmd/link: put text at address 0x1000000 on darwin/amd64
authorCherry Zhang <cherryyz@google.com>
Thu, 27 Oct 2016 18:33:58 +0000 (14:33 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 28 Oct 2016 20:17:53 +0000 (20:17 +0000)
commit9d1efba28db4c045356c92c20f98cf12b5f31d72
tree39048e5b6b97910261c2517f32e9f9c82adf567f
parentc39918a04991387f14cab1204f54fafab81bc105
cmd/link: put text at address 0x1000000 on darwin/amd64

Apparently on macOS Sierra LLDB thinks /usr/lib/dyld is mapped
at address 0, even if Go code starts at 0x1000, and it looks up
addresses from dyld which shadows Go symbols. Move Go binary at
a higher address to avoid clash.

Fixes #17463. Re-enable TestLldbPython.

Change-Id: I89ca6f3ee48aa6da9862bfa0c2da91477cc93255
Reviewed-on: https://go-review.googlesource.com/32185
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Quentin Smith <quentin@golang.org>
src/cmd/link/internal/amd64/obj.go
src/runtime/runtime-lldb_test.go