History

ARC: extable: Enable sorting at build time

Avoids wasting cycles at boot specially on slower simulators

Vineet Gupta committed 13 years ago

Commit f06d19e1 parent 6ce4eac2 files · +6 −0Browse files

Unified · Split

2 files
  1. arch/arc/Kconfig +1 −0
  2. scripts/sortextable.c +5 −0
arch/arc/Kconfig+1−0
@@ -8,6 +8,7 @@ · 7 unmodified lines
8 8
9config ARC9config ARC
10 def_bool y10 def_bool y
11 select BUILDTIME_EXTABLE_SORT
11 select CLONE_BACKWARDS12 select CLONE_BACKWARDS
12 # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev13 # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
13 select DEVTMPFS if !INITRAMFS_SOURCE=""14 select DEVTMPFS if !INITRAMFS_SOURCE=""
scripts/sortextable.c+5−0
@@ -31,6 +31,10 @@ · 30 unmodified lines
31#include <tools/be_byteshift.h>31#include <tools/be_byteshift.h>
32#include <tools/le_byteshift.h>32#include <tools/le_byteshift.h>
33 33
34#ifndef EM_ARCOMPACT
35#define EM_ARCOMPACT 93
36#endif
37
34#ifndef EM_AARCH6438#ifndef EM_AARCH64
35#define EM_AARCH64 18339#define EM_AARCH64 183
36#endif40#endif
@@ -268,6 +272,7 @@ do_file(char const *const fname) · 231 unmodified lines
268 case EM_S390:272 case EM_S390:
269 custom_sort = sort_relative_table;273 custom_sort = sort_relative_table;
270 break;274 break;
275 case EM_ARCOMPACT:
271 case EM_ARM:276 case EM_ARM:
272 case EM_AARCH64:277 case EM_AARCH64:
273 case EM_MIPS:278 case EM_MIPS: