Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
 config PPC
        bool
        default y
+       select BUILDTIME_EXTABLE_SORT
        select ARCH_MIGHT_HAVE_PC_PARPORT
        select ARCH_MIGHT_HAVE_PC_SERIO
        select BINFMT_ELF
 
 }
 #endif
 
-struct exception_table_entry;
-void sort_ex_table(struct exception_table_entry *start,
-                  struct exception_table_entry *finish);
-
 #if defined(CONFIG_MODVERSIONS) && defined(CONFIG_PPC64)
 #define ARCH_RELOCATES_KCRCTAB
 #define reloc_start PHYSICAL_START
 
        case EM_S390:
        case EM_AARCH64:
        case EM_PARISC:
+       case EM_PPC:
+       case EM_PPC64:
                custom_sort = sort_relative_table;
                break;
        case EM_ARCOMPACT: