aboutsummaryrefslogtreecommitdiff
path: root/src/debug/macho/macho.go
diff options
context:
space:
mode:
authorHiroshi Ioka <hirochachacha@gmail.com>2017-08-12 15:21:05 +0900
committerIan Lance Taylor <iant@golang.org>2017-08-14 05:27:53 +0000
commitd03b89bd41dbbb9f9d632839006309f4a1e9f4ca (patch)
treed7d3ded3be03c52974a5fa543df0e86bd849edbf /src/debug/macho/macho.go
parent98276d6abe97e50b2740e78a2b1e768abe6c7a33 (diff)
downloadgo-d03b89bd41dbbb9f9d632839006309f4a1e9f4ca.tar.gz
go-d03b89bd41dbbb9f9d632839006309f4a1e9f4ca.zip
debug/macho: add some file flags
Fixes #21414 Change-Id: Idff6e269ae32b33253067c9f32cac25256eb7f1c Reviewed-on: https://go-review.googlesource.com/55251 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/debug/macho/macho.go')
-rw-r--r--src/debug/macho/macho.go7
1 files changed, 7 insertions, 0 deletions
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