]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: sort relocs by off when printing
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 13 Mar 2016 17:13:03 +0000 (10:13 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 13 Mar 2016 20:31:40 +0000 (20:31 +0000)
commitaf1c29c1c1051a26de4cc72454827dd01e578b45
tree85942cb8d929202ce989794c24c8c208edb15567
parenta2a48069fee931af943161c9f8a9aace32811b7b
cmd/internal/obj: sort relocs by off when printing

This makes the output of compiling with -S more
stable in the face of unimportant variation in the
order in which relocs are generated.
It is also more pleasant to read the relocs when
they are sorted.

Also, do some minor cleanup.

For #14786

Change-Id: Id92020b13fd21777dfb5b29c2722c3b2eb27001b
Reviewed-on: https://go-review.googlesource.com/20641
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/internal/obj/objfile.go