]> Cypherpunks.ru repositories - gostls13.git/commitdiff
debug/elf: rename Chdr64.Reserved to _
authorAustin Clements <austin@google.com>
Fri, 18 Dec 2015 17:53:25 +0000 (09:53 -0800)
committerAustin Clements <austin@google.com>
Fri, 18 Dec 2015 20:41:26 +0000 (20:41 +0000)
This future-proofs the Chdr64 structure against later versions of ELF
defining this field and declutters the documentation without changing
the layout of the struct.

This structure does not exist in the current release, so this change
is safe.

Change-Id: I239aad7243ddaf063a1f8cd521d8a50b30413281
Reviewed-on: https://go-review.googlesource.com/18028
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
api/go1.6.txt
src/debug/elf/elf.go

index b78d9d72ce033f4554a78480cfd979162b926102..cdf47ed728df83bf1ec09a0d8f4ffd8890a40591 100644 (file)
@@ -135,7 +135,6 @@ pkg debug/elf, type Chdr32 struct, Size uint32
 pkg debug/elf, type Chdr32 struct, Type uint32
 pkg debug/elf, type Chdr64 struct
 pkg debug/elf, type Chdr64 struct, Addralign uint64
-pkg debug/elf, type Chdr64 struct, Reserved uint32
 pkg debug/elf, type Chdr64 struct, Size uint64
 pkg debug/elf, type Chdr64 struct, Type uint32
 pkg debug/elf, type CompressionType int
index 0c79b7a02fab42a0ad7415fd857141fb0ccae4ef..f53ba0079a2d04fc3086519c4586124fdeaa2bd7 100644 (file)
@@ -2006,7 +2006,7 @@ type Dyn64 struct {
 // ELF64 Compression header.
 type Chdr64 struct {
        Type      uint32
-       Reserved  uint32
+       _         uint32 /* Reserved. */
        Size      uint64
        Addralign uint64
 }