Skip to content

Commit f06d19e

Browse files
committed
ARC: extable: Enable sorting at build time
Avoids wasting cycles at boot specially on slower simulators Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Michal Marek <mmarek@suse.cz> Cc: Francois Bedard <fbedard@synopsys.com> Cc: linux-kernel@vger.kernel.org Acked-by: David Daney <david.daney@cavium.com>
1 parent 6ce4eac commit f06d19e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/arc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
config ARC
1010
def_bool y
11+
select BUILDTIME_EXTABLE_SORT
1112
select CLONE_BACKWARDS
1213
# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
1314
select DEVTMPFS if !INITRAMFS_SOURCE=""

‎scripts/sortextable.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
#include <tools/be_byteshift.h>
3232
#include <tools/le_byteshift.h>
3333

34+
#ifndef EM_ARCOMPACT
35+
#define EM_ARCOMPACT 93
36+
#endif
37+
3438
#ifndef EM_AARCH64
3539
#define EM_AARCH64 183
3640
#endif
@@ -268,6 +272,7 @@ do_file(char const *const fname)
268272
case EM_S390:
269273
custom_sort = sort_relative_table;
270274
break;
275+
case EM_ARCOMPACT:
271276
case EM_ARM:
272277
case EM_AARCH64:
273278
case EM_MIPS:

0 commit comments

Comments
 (0)