]> Cypherpunks repositories - gostls13.git/commit
cmd/5l,6l,8l: remove bogus dynsym section indexes
authorAustin Clements <austin@google.com>
Tue, 16 Dec 2014 20:59:05 +0000 (15:59 -0500)
committerAustin Clements <austin@google.com>
Mon, 22 Dec 2014 23:00:15 +0000 (23:00 +0000)
commit7e424ecdc106be705ac9b114871bc6d34cecb622
tree4f5fe963c6e5642a32fa9f3690757af66c61035a
parent326ceeabc46db98cccfbde80fde562c0fb3325c3
cmd/5l,6l,8l: remove bogus dynsym section indexes

Previously, this code generated bogus section indexes for dynamic
symbols.  It turns out this didn't matter, since we only emit these
when generating an executable and in an executable it only matters
whether a symbol is defined or undefined, but it leads to perplexing
code full of mysterious constants.

Unfortunately, this happens too early to put in real section indexes,
so just use section index 1 to distinguish the symbol from an
undefined symbol.

Change-Id: I0e514604bf31f21683598ebd3e020b66acf767ef
Reviewed-on: https://go-review.googlesource.com/1720
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/5l/asm.c
src/cmd/6l/asm.c
src/cmd/8l/asm.c