From: Hiroshi Ioka Date: Sat, 12 Aug 2017 06:21:05 +0000 (+0900) Subject: debug/macho: add some file flags X-Git-Tag: go1.10beta1~1612 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d03b89bd41dbbb9f9d632839006309f4a1e9f4ca;p=gostls13.git debug/macho: add some file flags Fixes #21414 Change-Id: Idff6e269ae32b33253067c9f32cac25256eb7f1c Reviewed-on: https://go-review.googlesource.com/55251 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/debug/macho/macho.go b/src/debug/macho/macho.go index 40ac74e9a1..366ce205df 100644 --- a/src/debug/macho/macho.go +++ b/src/debug/macho/macho.go @@ -90,6 +90,13 @@ var cmdStrings = []intName{ func (i LoadCmd) String() string { return stringName(uint32(i), cmdStrings, false) } func (i LoadCmd) GoString() string { return stringName(uint32(i), cmdStrings, true) } +const ( + FlagNoUndefs uint32 = 0x1 + FlagDyldLink uint32 = 0x4 + FlagTwoLevel uint32 = 0x80 + FlagPIE uint32 = 0x200000 +) + // A Segment64 is a 64-bit Mach-O segment load command. type Segment64 struct { Cmd LoadCmd