• Henrik Gramner's avatar
    x86inc: Avoid creating unnecessary local labels · d3662777
    Henrik Gramner authored
    The REP_RET workaround is only needed on old AMD cpus, and the labels clutter
    up the symbol table and confuse debugging/profiling tools, so use EQU to
    create SHN_ABS symbols instead of creating local labels. Furthermore, skip
    the workaround completely in functions that definitely won't run on such cpus.
    
    Note that EQU is just creating a local label when using nasm instead of yasm.
    This is probably a bug, but at least it doesn't break anything.
    d3662777
x86inc.asm 42.5 KB