}
 }
 
-static void arm64_sort_relative_table(char *extab_image, int image_size)
+static void sort_relative_table_with_data(char *extab_image, int image_size)
 {
        int i = 0;
 
        }
 }
 
-static void x86_sort_relative_table(char *extab_image, int image_size)
-{
-       int 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);
-               /* Don't touch the fixup type */
-
-               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);
-               /* Don't touch the fixup type */
-
-               i += sizeof(uint32_t) * 3;
-       }
-}
-
 static void s390_sort_relative_table(char *extab_image, int image_size)
 {
        int i;
 
        switch (r2(&ehdr->e_machine)) {
        case EM_386:
+       case EM_AARCH64:
        case EM_X86_64:
-               custom_sort = x86_sort_relative_table;
+               custom_sort = sort_relative_table_with_data;
                break;
        case EM_S390:
                custom_sort = s390_sort_relative_table;
                break;
-       case EM_AARCH64:
-               custom_sort = arm64_sort_relative_table;
-               break;
        case EM_PARISC:
        case EM_PPC:
        case EM_PPC64: