s390/exceptions: sort exception table at build time
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 24 Jul 2012 12:51:34 +0000 (14:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Jul 2012 08:07:25 +0000 (10:07 +0200)
Follow x86 and MIPS and sort the main exception table at build time.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig
arch/s390/kernel/early.c
scripts/sortextable.c

index a39b4690c171621e78e2183c6b1b97bd25f4afaf..d6108593c099bf57c7efa8ce0bee49937b744d98 100644 (file)
@@ -89,6 +89,7 @@ config S390
        select HAVE_MEMBLOCK_NODE_MAP
        select HAVE_CMPXCHG_LOCAL
        select ARCH_DISCARD_MEMBLOCK
+       select BUILDTIME_EXTABLE_SORT
        select ARCH_INLINE_SPIN_TRYLOCK
        select ARCH_INLINE_SPIN_TRYLOCK_BH
        select ARCH_INLINE_SPIN_LOCK
index bc95a8ebd9cc3810a0bfb83d34f10cca512d1d92..83c3271c442b75d5d005e1e6130f538deea968a7 100644 (file)
@@ -455,7 +455,6 @@ void __init startup_init(void)
        init_kernel_storage_key();
        lockdep_init();
        lockdep_off();
-       sort_main_extable();
        setup_lowcore_early();
        setup_facility_list();
        detect_machine_type();
index 1ca9ceb95eb6413161f0844ca491ba4e1260f711..6acf834491050237548163230a2b89e7e53b9b61 100644 (file)
@@ -247,6 +247,7 @@ do_file(char const *const fname)
        case EM_X86_64:
                custom_sort = sort_x86_table;
                break;
+       case EM_S390:
        case EM_MIPS:
                break;
        }  /* end switch */