• Austin Clements's avatar
    cmd/5l,6l,8l: remove bogus dynsym section indexes · 7e424ecd
    Austin Clements authored
    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/1720Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    7e424ecd
asm.c 15.5 KB