Skip to content

Commit 5b9ff02

Browse files
npigginmpe
authored andcommitted
powerpc: Build-time sort the exception table
Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 61a92f7 commit 5b9ff02

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Diff for: arch/powerpc/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK
8080
config PPC
8181
bool
8282
default y
83+
select BUILDTIME_EXTABLE_SORT
8384
select ARCH_MIGHT_HAVE_PC_PARPORT
8485
select ARCH_MIGHT_HAVE_PC_SERIO
8586
select BINFMT_ELF

Diff for: arch/powerpc/include/asm/module.h

-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sec
9090
}
9191
#endif
9292

93-
struct exception_table_entry;
94-
void sort_ex_table(struct exception_table_entry *start,
95-
struct exception_table_entry *finish);
96-
9793
#if defined(CONFIG_MODVERSIONS) && defined(CONFIG_PPC64)
9894
#define ARCH_RELOCATES_KCRCTAB
9995
#define reloc_start PHYSICAL_START

Diff for: scripts/sortextable.c

+2
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ do_file(char const *const fname)
316316
case EM_S390:
317317
case EM_AARCH64:
318318
case EM_PARISC:
319+
case EM_PPC:
320+
case EM_PPC64:
319321
custom_sort = sort_relative_table;
320322
break;
321323
case EM_ARCOMPACT:

0 commit comments

Comments
 (0)