Commit 5b9ff027 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

powerpc: Build-time sort the exception table

Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 61a92f70
...@@ -80,6 +80,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK ...@@ -80,6 +80,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK
config PPC config PPC
bool bool
default y default y
select BUILDTIME_EXTABLE_SORT
select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_PARPORT
select ARCH_MIGHT_HAVE_PC_SERIO select ARCH_MIGHT_HAVE_PC_SERIO
select BINFMT_ELF select BINFMT_ELF
......
...@@ -90,10 +90,6 @@ static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sec ...@@ -90,10 +90,6 @@ static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sec
} }
#endif #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) #if defined(CONFIG_MODVERSIONS) && defined(CONFIG_PPC64)
#define ARCH_RELOCATES_KCRCTAB #define ARCH_RELOCATES_KCRCTAB
#define reloc_start PHYSICAL_START #define reloc_start PHYSICAL_START
......
...@@ -316,6 +316,8 @@ do_file(char const *const fname) ...@@ -316,6 +316,8 @@ do_file(char const *const fname)
case EM_S390: case EM_S390:
case EM_AARCH64: case EM_AARCH64:
case EM_PARISC: case EM_PARISC:
case EM_PPC:
case EM_PPC64:
custom_sort = sort_relative_table; custom_sort = sort_relative_table;
break; break;
case EM_ARCOMPACT: case EM_ARCOMPACT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment