• Cherry Zhang's avatar
    [dev.link] cmd/link: do not put static symbols into name lookup table · c480d32f
    Cherry Zhang authored
    Since the previous CL, we will not reference static symbols by
    name. Therefore no need to put them into the name lookup table.
    
    On Linux/ARM, in runtime/internal/atomic/sys_linux_arm.s, the
    kernelcas function has a definition and a reference written in
    two different forms, one with package prefix, one without. This
    way, the assembler cannot know they are the same symbol, only the
    linker knows. This is quite unusual, unify the names to so the
    assembler can resolve it to index.
    
    Change-Id: Ie7223097be6a3b65f3fa43ed4575da9972ef5b69
    Reviewed-on: https://go-review.googlesource.com/c/go/+/201998
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarThan McIntosh <thanm@google.com>
    c480d32f
sys_linux_arm.s 2.83 KB