diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.build | 3 | ||||
| -rwxr-xr-x | scripts/recordmcount.pl | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 843bd4f4ffc9..5ad25e17b6cb 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -221,7 +221,8 @@ else | |||
| 221 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ | 221 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |
| 222 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ | 222 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |
| 223 | "$(if $(CONFIG_64BIT),64,32)" \ | 223 | "$(if $(CONFIG_64BIT),64,32)" \ |
| 224 | "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ | 224 | "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ |
| 225 | "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ | ||
| 225 | "$(if $(part-of-module),1,0)" "$(@)"; | 226 | "$(if $(part-of-module),1,0)" "$(@)"; |
| 226 | endif | 227 | endif |
| 227 | endif | 228 | endif |
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index e67f05486087..1d7963f4ee79 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl | |||
| @@ -270,6 +270,8 @@ if ($arch eq "x86_64") { | |||
| 270 | } elsif ($arch eq "arm") { | 270 | } elsif ($arch eq "arm") { |
| 271 | $alignment = 2; | 271 | $alignment = 2; |
| 272 | $section_type = '%progbits'; | 272 | $section_type = '%progbits'; |
| 273 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24|THM_CALL)" . | ||
| 274 | "\\s+(__gnu_mcount_nc|mcount)\$"; | ||
| 273 | 275 | ||
| 274 | } elsif ($arch eq "ia64") { | 276 | } elsif ($arch eq "ia64") { |
| 275 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$"; | 277 | $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$"; |
