]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: change DWARF encoding for array lengths
authorRob Pike <r@golang.org>
Tue, 15 Jul 2014 21:18:18 +0000 (21:18 +0000)
committerRob Pike <r@golang.org>
Tue, 15 Jul 2014 21:18:18 +0000 (21:18 +0000)
They can be large, so use a varint encoding rather than only one byte.

LGTM=iant, rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/113180043

src/cmd/ld/dwarf.c

index f3e87816417767eec4c20df7650976420a3f5c01..c2fd07702dabd7676c93c5f4bc287491c5bec1ae 100644 (file)
@@ -266,7 +266,7 @@ static struct DWAbbrev {
                DW_TAG_subrange_type, DW_CHILDREN_no,
                // No name!
                DW_AT_type,      DW_FORM_ref_addr,
-               DW_AT_upper_bound, DW_FORM_data1,
+               DW_AT_upper_bound, DW_FORM_udata,
                0, 0
        },