diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-14 20:38:05 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-14 20:38:05 -0500 |
| commit | 42249094f79422fbf5ed4b54eeb48ff096809b8f (patch) | |
| tree | 91e6850c8c7e8cc284cf8bb6363f8662f84011f4 /scripts/sortextable.c | |
| parent | 936816161978ca716a56c5e553c68f25972b1e3a (diff) | |
| parent | 2c027b7c48a888ab173ba45babb4525e278375d9 (diff) | |
Merge branch 'next' into for-linus
Merge first round of changes for 3.13 merge window.
Diffstat (limited to 'scripts/sortextable.c')
| -rw-r--r-- | scripts/sortextable.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/scripts/sortextable.c b/scripts/sortextable.c index 1f10e89d15b4..7c2310c5b996 100644 --- a/scripts/sortextable.c +++ b/scripts/sortextable.c | |||
| @@ -31,6 +31,10 @@ | |||
| 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_AARCH64 | ||
| 35 | #define EM_AARCH64 183 | ||
| 36 | #endif | ||
| 37 | |||
| 34 | static int fd_map; /* File descriptor for file being modified. */ | 38 | static int fd_map; /* File descriptor for file being modified. */ |
| 35 | static int mmap_failed; /* Boolean flag. */ | 39 | static int mmap_failed; /* Boolean flag. */ |
| 36 | static void *ehdr_curr; /* current ElfXX_Ehdr * for resource cleanup */ | 40 | static void *ehdr_curr; /* current ElfXX_Ehdr * for resource cleanup */ |
| @@ -60,14 +64,6 @@ fail_file(void) | |||
| 60 | longjmp(jmpenv, SJ_FAIL); | 64 | longjmp(jmpenv, SJ_FAIL); |
| 61 | } | 65 | } |
| 62 | 66 | ||
| 63 | static void __attribute__((noreturn)) | ||
| 64 | succeed_file(void) | ||
| 65 | { | ||
| 66 | cleanup(); | ||
| 67 | longjmp(jmpenv, SJ_SUCCEED); | ||
| 68 | } | ||
| 69 | |||
| 70 | |||
| 71 | /* | 67 | /* |
| 72 | * Get the whole file as a programming convenience in order to avoid | 68 | * Get the whole file as a programming convenience in order to avoid |
| 73 | * malloc+lseek+read+free of many pieces. If successful, then mmap | 69 | * malloc+lseek+read+free of many pieces. If successful, then mmap |
| @@ -249,6 +245,7 @@ do_file(char const *const fname) | |||
| 249 | custom_sort = sort_relative_table; | 245 | custom_sort = sort_relative_table; |
| 250 | break; | 246 | break; |
| 251 | case EM_ARM: | 247 | case EM_ARM: |
| 248 | case EM_AARCH64: | ||
| 252 | case EM_MIPS: | 249 | case EM_MIPS: |
| 253 | break; | 250 | break; |
| 254 | } /* end switch */ | 251 | } /* end switch */ |
