From: Ian Lance Taylor Date: Mon, 2 Nov 2009 20:53:06 +0000 (-0800) Subject: Define constants for sizes of Sym structures. X-Git-Tag: weekly.2009-11-06~129 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f32cde88b6a60232555d18f9e3ee0faff68d9b8d;p=gostls13.git Define constants for sizes of Sym structures. R=rsc, agl http://go/go-review/1016028 --- diff --git a/src/pkg/debug/elf/elf.go b/src/pkg/debug/elf/elf.go index 9a8d2d3491..96e4a3f462 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;