aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-05 22:05:43 -0800
committerRobert Griesemer <gri@golang.org>2009-11-05 22:05:43 -0800
commit07b6becc8883b26ac379228c3c7bc470b1d610ef (patch)
treecd785c6bc1cf453fedbe49d5d7ab88b8ee63d4b9
parent7151d2337b5f3efd5f65a2ba2323c4a662c0475d (diff)
downloadgo-07b6becc8883b26ac379228c3c7bc470b1d610ef.tar.gz
go-07b6becc8883b26ac379228c3c7bc470b1d610ef.zip
- 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
-rw-r--r--src/pkg/debug/elf/elf.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/pkg/debug/elf/elf.go b/src/pkg/debug/elf/elf.go
index e355508f60..716f10b40b 100644
--- a/src/pkg/debug/elf/elf.go
+++ b/src/pkg/debug/elf/elf.go
@@ -619,11 +619,10 @@ type DynFlag int
const (
DF_ORIGIN DynFlag = 0x0001; /* Indicates that the object being loaded may
- make reference to the $ORIGIN substitution
- string */
+ make reference to the
+ $ORIGIN substitution string */
DF_SYMBOLIC DynFlag = 0x0002; /* Indicates "symbolic" linking. */
- DF_TEXTREL DynFlag = 0x0004; /* Indicates there may be relocations in
- non-writable segments. */
+ DF_TEXTREL DynFlag = 0x0004; /* Indicates there may be relocations in non-writable segments. */
DF_BIND_NOW DynFlag = 0x0008; /* Indicates that the dynamic linker should
process all relocations for the object
containing this entry before transferring
@@ -1393,8 +1392,7 @@ type Header32 struct {
* ELF32 Section header.
*/
type Section32 struct {
- Name uint32; /* Section name (index into the
- section header string table). */
+ Name uint32; /* Section name (index into the section header string table). */
Type uint32; /* Section type. */
Flags uint32; /* Section flags. */
Addr uint32; /* Address in memory image. */
@@ -1507,8 +1505,7 @@ type Header64 struct {
*/
type Section64 struct {
- Name uint32; /* Section name (index into the
- section header string table). */
+ Name uint32; /* Section name (index into the section header string table). */
Type uint32; /* Section type. */
Flags uint64; /* Section flags. */
Addr uint64; /* Address in memory image. */