From bb730cc30135e5c4b568233429ef5593aa35f2e8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 31 Oct 2016 10:12:45 -0600 Subject: Revert "x86/mm: Expand the exception table logic to allow new handling options" This reverts commit fcf5e5198b447969ed2a56ec335dae3c695a6b46 which is 548acf19234dbda5a52d5a8e7e205af46e9da840 upstream. Cc: Tony Luck Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- scripts/sortextable.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'scripts/sortextable.c') diff --git a/scripts/sortextable.c b/scripts/sortextable.c index 7b29fb14f870..c2423d913b46 100644 --- a/scripts/sortextable.c +++ b/scripts/sortextable.c @@ -209,35 +209,6 @@ static int compare_relative_table(const void *a, const void *b) return 0; } -static void x86_sort_relative_table(char *extab_image, int image_size) -{ - int i; - - i = 0; - while (i < image_size) { - uint32_t *loc = (uint32_t *)(extab_image + i); - - w(r(loc) + i, loc); - w(r(loc + 1) + i + 4, loc + 1); - w(r(loc + 2) + i + 8, loc + 2); - - i += sizeof(uint32_t) * 3; - } - - qsort(extab_image, image_size / 12, 12, compare_relative_table); - - i = 0; - while (i < image_size) { - uint32_t *loc = (uint32_t *)(extab_image + i); - - w(r(loc) - i, loc); - w(r(loc + 1) - (i + 4), loc + 1); - w(r(loc + 2) - (i + 8), loc + 2); - - i += sizeof(uint32_t) * 3; - } -} - static void sort_relative_table(char *extab_image, int image_size) { int i; @@ -310,9 +281,6 @@ do_file(char const *const fname) break; case EM_386: case EM_X86_64: - custom_sort = x86_sort_relative_table; - break; - case EM_S390: custom_sort = sort_relative_table; break; -- cgit v1.2.3