]> Cypherpunks repositories - gostls13.git/commitdiff
Define constants for sizes of Sym structures.
authorIan Lance Taylor <iant@golang.org>
Mon, 2 Nov 2009 20:53:06 +0000 (12:53 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 2 Nov 2009 20:53:06 +0000 (12:53 -0800)
R=rsc, agl
http://go/go-review/1016028

src/pkg/debug/elf/elf.go

index 9a8d2d3491dcaa6361d7cca36eca3367f24d2b01..96e4a3f462ea5ce1199236f9e37a28467bd2fce2 100644 (file)
@@ -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;