diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/link-vmlinux.sh | 4 | ||||
-rwxr-xr-x | scripts/recordmcount.pl | 3 | ||||
-rw-r--r-- | scripts/sortextable.c | 5 |
3 files changed, 10 insertions, 2 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 32b10f53d0b4..2dcb37736d84 100644 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh | |||
@@ -82,7 +82,9 @@ kallsyms() | |||
82 | kallsymopt="${kallsymopt} --all-symbols" | 82 | kallsymopt="${kallsymopt} --all-symbols" |
83 | fi | 83 | fi |
84 | 84 | ||
85 | kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" | 85 | if [ -n "${CONFIG_ARM}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then |
86 | kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" | ||
87 | fi | ||
86 | 88 | ||
87 | local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \ | 89 | local aflags="${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} \ |
88 | ${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS}" | 90 | ${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS}" |
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index d0da66396f62..91280b82da08 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
@@ -364,7 +364,8 @@ if ($arch eq "x86_64") { | |||
364 | } elsif ($arch eq "blackfin") { | 364 | } elsif ($arch eq "blackfin") { |
365 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$"; | 365 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$"; |
366 | $mcount_adjust = -4; | 366 | $mcount_adjust = -4; |
367 | } elsif ($arch eq "tilegx") { | 367 | } elsif ($arch eq "tilegx" || $arch eq "tile") { |
368 | # Default to the newer TILE-Gx architecture if only "tile" is given. | ||
368 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$"; | 369 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$"; |
369 | $type = ".quad"; | 370 | $type = ".quad"; |
370 | $alignment = 8; | 371 | $alignment = 8; |
diff --git a/scripts/sortextable.c b/scripts/sortextable.c index 5f7a8b663cb9..7941fbdfb050 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_ARCOMPACT | ||
35 | #define EM_ARCOMPACT 93 | ||
36 | #endif | ||
37 | |||
34 | #ifndef EM_AARCH64 | 38 | #ifndef EM_AARCH64 |
35 | #define EM_AARCH64 183 | 39 | #define EM_AARCH64 183 |
36 | #endif | 40 | #endif |
@@ -268,6 +272,7 @@ do_file(char const *const fname) | |||
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: |