aboutsummaryrefslogtreecommitdiff
path: root/src/debug/macho/macho.go
diff options
context:
space:
mode:
authorKunpei Sakai <namusyaka@gmail.com>2017-08-28 15:28:12 +0900
committerIan Lance Taylor <iant@golang.org>2017-08-29 00:44:44 +0000
commit5a6c332451079a11cbd8457ccd30c4309564db82 (patch)
tree973fe69ee4c0ebb7e2f42f42a374958ece227e60 /src/debug/macho/macho.go
parent77acf19a5929fcd2941a8ae1724584b4a184c93a (diff)
downloadgo-5a6c332451079a11cbd8457ccd30c4309564db82.tar.gz
go-5a6c332451079a11cbd8457ccd30c4309564db82.zip
debug/macho: add missing file flags
Fixes #21414 Change-Id: I8b25d416e6ead087b4a9965e8fa1a7f59ff07291 Reviewed-on: https://go-review.googlesource.com/59290 Reviewed-by: Hiroshi Ioka <hirochachacha@gmail.com> 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.go30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/debug/macho/macho.go b/src/debug/macho/macho.go
index 907be31341..fed8eb25a4 100644
--- a/src/debug/macho/macho.go
+++ b/src/debug/macho/macho.go
@@ -194,10 +194,32 @@ type (
)
const (
- FlagNoUndefs uint32 = 0x1
- FlagDyldLink uint32 = 0x4
- FlagTwoLevel uint32 = 0x80
- FlagPIE uint32 = 0x200000
+ FlagNoUndefs uint32 = 0x1
+ FlagIncrLink uint32 = 0x2
+ FlagDyldLink uint32 = 0x4
+ FlagBindAtLoad uint32 = 0x8
+ FlagPrebound uint32 = 0x10
+ FlagSplitSegs uint32 = 0x20
+ FlagLazyInit uint32 = 0x40
+ FlagTwoLevel uint32 = 0x80
+ FlagForceFlat uint32 = 0x100
+ FlagNoMultiDefs uint32 = 0x200
+ FlagNoFixPrebinding uint32 = 0x400
+ FlagPrebindable uint32 = 0x800
+ FlagAllModsBound uint32 = 0x1000
+ FlagSubsectionsViaSymbols uint32 = 0x2000
+ FlagCanonical uint32 = 0x4000
+ FlagWeakDefines uint32 = 0x8000
+ FlagBindsToWeak uint32 = 0x10000
+ FlagAllowStackExecution uint32 = 0x20000
+ FlagRootSafe uint32 = 0x40000
+ FlagSetuidSafe uint32 = 0x80000
+ FlagNoReexportedDylibs uint32 = 0x100000
+ FlagPIE uint32 = 0x200000
+ FlagDeadStrippableDylib uint32 = 0x400000
+ FlagHasTLVDescriptors uint32 = 0x800000
+ FlagNoHeapExecution uint32 = 0x1000000
+ FlagAppExtensionSafe uint32 = 0x2000000
)
// A Section32 is a 32-bit Mach-O section header.