• R
    workaround broken hidden-visibility handling in pcc · 36be5284
    Rich Felker 提交于
    with this change, pcc-built musl libc.so seems to work correctly. the
    problem is that pcc generates GOT lookups for external-linkage symbols
    even if they are hidden, rather than using GOT-relative addressing.
    the entire reason we're using hidden visibility on the __libc object
    is to make it accessible prior to relocations -- not to mention
    inexpensive to access. unfortunately, the workaround makes it even
    more expensive on pcc.
    
    when the pcc issue is fixed, an appropriate version test should be
    added so new pcc can use the much more efficient variant.
    36be5284
libc.h 1.5 KB