diff --git a/dwarf/type.go b/dwarf/type.go
index <HASH>..<HASH> 100644
--- a/dwarf/type.go
+++ b/dwarf/type.go
@@ -28,6 +28,7 @@ type CommonType struct {
 	ByteSize    int64        // size of value of this type, in bytes
 	Name        string       // name that can be used to refer to type
 	ReflectKind reflect.Kind // the reflect kind of the type.
+	Offset      Offset       // the offset at which this type was read
 }
 
 func (c *CommonType) Common() *CommonType { return c }
@@ -789,6 +790,8 @@ func (d *Data) readType(name string, r typeReader, off Offset, typeCache map[Off
 		goto Error
 	}
 
+	typ.Common().Offset = off
+
 	{
 		b, ok := e.Val(AttrByteSize).(int64)
 		if !ok {
debug/dwarf: add an Offset field to CommonType, containing the DWARF offset of the type's entry.

Change-Id: I<I>cd<I>ae6e<I>e<I>dd<I>a<I>c1c<I>
Reviewed-on: <URL>