diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-11-02 12:53:06 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-11-02 12:53:06 -0800 |
commit | cf5696fc2d629ff114531610e56834feb43b554e (patch) | |
tree | d198c5723cc047fdf35712a8bc4ed60014e6a28a /src | |
parent | 16dd5020239cfc71c205a29bb0d957fd6d6c1a9c (diff) | |
download | golang-cf5696fc2d629ff114531610e56834feb43b554e.tar.gz |
Define constants for sizes of Sym structures.
R=rsc, agl
http://go/go-review/1016028
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/debug/elf/elf.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/debug/elf/elf.go b/src/pkg/debug/elf/elf.go index 9a8d2d349..96e4a3f46 100644 --- a/src/pkg/debug/elf/elf.go +++ b/src/pkg/debug/elf/elf.go @@ -1465,6 +1465,8 @@ type Sym32 struct { Shndx uint16; } +const Sym32Size = 16 + func ST_BIND(info uint8) SymBind { return SymBind(info>>4); } @@ -1582,6 +1584,7 @@ type Sym64 struct { Size uint64; /* Size of associated object. */ } +const Sym64Size = 24 type intName struct { i uint32; |