]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: make ELF constants explicit
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 3 Mar 2015 21:28:18 +0000 (10:28 +1300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Mar 2015 22:20:12 +0000 (22:20 +0000)
commit1b9049b554025142408cdf8aad294fb7041c847a
tree94af2fe4bfae0a3e387924e5edd269173f819f3c
parent0153137a3b40e58572ae9678e4733bb54827950a
cmd/internal/ld: make ELF constants explicit

c2go produced accurate but complex constant definitions like
"ElfSymBindLocal  = 0 + iota - 67" which break when any constants
are added above them in the list. Change them to explicit values
in separate blocks by class. I wrote a little program (using awk)
to dump the values of the constants:

    https://gist.github.com/mwhudson/82f82008279a38ce584e

and confirmed that its output before and after this change is the
same.

Change-Id: Ib4aea4a0d688a16cdcb76af4715d1a97ec0f013c
Reviewed-on: https://go-review.googlesource.com/6581
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/ld/ldelf.go