]> Cypherpunks repositories - gostls13.git/commitdiff
debug/macho: add some file flags
authorHiroshi Ioka <hirochachacha@gmail.com>
Sat, 12 Aug 2017 06:21:05 +0000 (15:21 +0900)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Aug 2017 05:27:53 +0000 (05:27 +0000)
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>

src/debug/macho/macho.go

index 40ac74e9a141f6a2558011f30032d14a2874fb42..366ce205dfb3ac83c9003cdf6acc7b7ee586fc6c 100644 (file)
@@ -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