Commit 07b6becc authored by Robert Griesemer's avatar Robert Griesemer

- fix elf.go manually so it is idempotent for gofmt

- with this change, `gofmt -l src/pkg | wc` is 0

R=rsc
http://go/go-review/1025002
parent 7151d233
...@@ -619,11 +619,10 @@ type DynFlag int ...@@ -619,11 +619,10 @@ type DynFlag int
const ( const (
DF_ORIGIN DynFlag = 0x0001; /* Indicates that the object being loaded may DF_ORIGIN DynFlag = 0x0001; /* Indicates that the object being loaded may
make reference to the $ORIGIN substitution make reference to the
string */ $ORIGIN substitution string */
DF_SYMBOLIC DynFlag = 0x0002; /* Indicates "symbolic" linking. */ DF_SYMBOLIC DynFlag = 0x0002; /* Indicates "symbolic" linking. */
DF_TEXTREL DynFlag = 0x0004; /* Indicates there may be relocations in DF_TEXTREL DynFlag = 0x0004; /* Indicates there may be relocations in non-writable segments. */
non-writable segments. */
DF_BIND_NOW DynFlag = 0x0008; /* Indicates that the dynamic linker should DF_BIND_NOW DynFlag = 0x0008; /* Indicates that the dynamic linker should
process all relocations for the object process all relocations for the object
containing this entry before transferring containing this entry before transferring
...@@ -1393,8 +1392,7 @@ type Header32 struct { ...@@ -1393,8 +1392,7 @@ type Header32 struct {
* ELF32 Section header. * ELF32 Section header.
*/ */
type Section32 struct { type Section32 struct {
Name uint32; /* Section name (index into the Name uint32; /* Section name (index into the section header string table). */
section header string table). */
Type uint32; /* Section type. */ Type uint32; /* Section type. */
Flags uint32; /* Section flags. */ Flags uint32; /* Section flags. */
Addr uint32; /* Address in memory image. */ Addr uint32; /* Address in memory image. */
...@@ -1507,8 +1505,7 @@ type Header64 struct { ...@@ -1507,8 +1505,7 @@ type Header64 struct {
*/ */
type Section64 struct { type Section64 struct {
Name uint32; /* Section name (index into the Name uint32; /* Section name (index into the section header string table). */
section header string table). */
Type uint32; /* Section type. */ Type uint32; /* Section type. */
Flags uint64; /* Section flags. */ Flags uint64; /* Section flags. */
Addr uint64; /* Address in memory image. */ Addr uint64; /* Address in memory image. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment