• R
    ldso: correct condition for local symbol handling in do_relocs · 1f060ed2
    Rich Felker 提交于
    commit 7a9669e9 added use of the
    symbol reference as the definition, in place of performing a lookup,
    for STT_SECTION symbol references that were first found used in FDPIC.
    such references may happen in certain other cases, such as
    local-dynamic TLS and with relocation types that require a symbol but
    that are being used for non-symbolic purposes, like the powerpc
    unaligned address relocations.
    
    in all such cases I'm aware of, the symbol referenced is a section
    symbol (STT_SECTION); however, the important semantic property is not
    its being a section, but rather its binding local (STB_LOCAL). check
    the latter instead of the former for greater generality and semantic
    correctness.
    1f060ed2
dynlink.c 62.2 KB