瀏覽代碼

ARCv2: extable: Enable sorting at build time

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 11 年之前
父節點
當前提交
b3210d141f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      scripts/sortextable.c

+ 5 - 0
scripts/sortextable.c

@@ -47,6 +47,10 @@
 #define EM_MICROBLAZE	189
 #endif
 
+#ifndef EM_ARCV2
+#define EM_ARCV2	195
+#endif
+
 static int fd_map;	/* File descriptor for file being modified. */
 static int mmap_failed; /* Boolean flag. */
 static void *ehdr_curr; /* current ElfXX_Ehdr *  for resource cleanup */
@@ -281,6 +285,7 @@ do_file(char const *const fname)
 		custom_sort = sort_relative_table;
 		break;
 	case EM_ARCOMPACT:
+	case EM_ARCV2:
 	case EM_ARM:
 	case EM_AARCH64:
 	case EM_MICROBLAZE: