• Michael Ellerman's avatar
    powerpc: Don't change the section in _GLOBAL() · bea2dccc
    Michael Ellerman authored
    Currently the _GLOBAL() macro unilaterally sets the assembler section to
    ".text" at the start of the macro. This is rude as the caller may be
    using a different section.
    
    So let the caller decide which section to emit the code into. On big
    endian we do need to switch to the ".opd" section to emit the OPD, but
    do that with pushsection/popsection, thereby leaving the original
    section intact.
    
    I verified that the order of all entries in System.map is unchanged
    after this patch. The actual addresses shift around slightly so you
    can't just diff the System.map.
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Reviewed-by: default avatarNicholas Piggin <npiggin@gmail.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    bea2dccc
ppc_asm.h 20.4 KB