From d03b89bd41dbbb9f9d632839006309f4a1e9f4ca Mon Sep 17 00:00:00 2001 From: Hiroshi Ioka Date: Sat, 12 Aug 2017 15:21:05 +0900 Subject: [PATCH] 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 --- src/debug/macho/macho.go | 7 +++++++ 1 file changed, 7 insertions(+) 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