• Michael Ellerman's avatar
    powerpc: Ensure the else case of feature sections will fit · c0337288
    Michael Ellerman authored
    When we create an alternative feature section, the else case must be the
    same size or smaller than the body. This is because when we patch the
    else case in we just overwrite the body, so there must be room.
    
    Up to now we just did this by inspection, but it's quite easy to enforce
    it in the assembler, so we should.
    
    The only change is to add the ifgt block, but that effects the alignment
    of the tabs and so the whole macro is modified.
    
    Also add a test, but #if 0 it because we don't want to break the build.
    Anyone who's modifying the feature macros should enable the test.
    Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    c0337288
feature-fixups-test.S 19 KB