Thread (118 messages) 118 messages, 7 authors, 2014-06-11

[PATCH v5 0/7] arm64: Add ftrace support

From: rostedt@goodmis.org (Steven Rostedt)
Date: 2014-03-12 02:02:32
Also in: lkml

On Wed, 12 Mar 2014 10:47:20 +0900
AKASHI Takahiro [off-list ref] wrote:

This happens when a header file, elf.h, on "your host machine" does not have
definitions of EM_AARCH64 nor R_AARCH64_ABS64 because "recordmcount" is a binary
utility on host(x86), not target. It is very likely for most distros.
(I mentioned this in the cover letter, but the description might not be clear.)

Possible solutions are:
1) Define both macros directly in scripts/recordmcount.c
2) Use perl version of recordmcount

Currently I take 1), but it is a workaround.
2) should work with my current patch, too. But you need to remove HAVE_C_RECORDCOUNT
from arm64/Kconfig.

Which one do you prefer? I will include a fix for 1) in the next revision, anyway.
Or even option 3)

3) I can update the main Makefile to check to see if EM_<ARCH> exists
in the elf.h header, and if not, we use the perl version and undef
HAVE_C_RECORDMCOUNT.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help