]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix incorrect constant for macho-o load command
authorThan McIntosh <thanm@google.com>
Fri, 24 May 2019 19:38:47 +0000 (15:38 -0400)
committerThan McIntosh <thanm@google.com>
Sat, 25 May 2019 12:54:34 +0000 (12:54 +0000)
commita3863fc18a2a7f91b9f523cb3af56733460cac4c
tree4133d9ca5ffd8044d8e0caba481d1ac2c43f6607
parent385b2e0caccbb5da73b940a756c043a0aaa2d5a8
cmd/link: fix incorrect constant for macho-o load command

The constant defined in macho.go for LC_LOAD_WEAK_DYLIB was
not correct, was 0x18 should have been 0x80000018. Switch
to the correct definition.

Fixes #32233.

Change-Id: I9fb660a3cfd5e8c451a64947258f7ead76d98c79
Reviewed-on: https://go-review.googlesource.com/c/go/+/178723
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/link/internal/ld/macho.go