mirror of
https://github.com/golang/go
synced 2024-11-23 18:20:04 -07:00
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>
This commit is contained in:
parent
385b2e0cac
commit
a3863fc18a
@ -141,7 +141,7 @@ const (
|
||||
LC_SUB_LIBRARY = 0x15
|
||||
LC_TWOLEVEL_HINTS = 0x16
|
||||
LC_PREBIND_CKSUM = 0x17
|
||||
LC_LOAD_WEAK_DYLIB = 0x18
|
||||
LC_LOAD_WEAK_DYLIB = 0x80000018
|
||||
LC_SEGMENT_64 = 0x19
|
||||
LC_ROUTINES_64 = 0x1a
|
||||
LC_UUID = 0x1b
|
||||
|
Loading…
Reference in New Issue
Block a user