Skip to content

Commit

Permalink
ARC: extable: Enable sorting at build time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vineet Gupta committed Nov 25, 2013
1 parent 6ce4eac commit f06d19e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

config ARC
def_bool y
select BUILDTIME_EXTABLE_SORT
select CLONE_BACKWARDS
# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
select DEVTMPFS if !INITRAMFS_SOURCE=""
Expand Down
5 changes: 5 additions & 0 deletions scripts/sortextable.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#include <tools/be_byteshift.h>
#include <tools/le_byteshift.h>

#ifndef EM_ARCOMPACT
#define EM_ARCOMPACT 93
#endif

#ifndef EM_AARCH64
#define EM_AARCH64 183
#endif
Expand Down Expand Up @@ -268,6 +272,7 @@ do_file(char const *const fname)
case EM_S390:
custom_sort = sort_relative_table;
break;
case EM_ARCOMPACT:
case EM_ARM:
case EM_AARCH64:
case EM_MIPS:
Expand Down

0 comments on commit f06d19e

Please sign in to comment.