Thread (10 messages) 10 messages, 5 authors, 2008-11-21

Re: [PATCH 1/3] sh: dynamic ftrace support.

From: Matt Fleming <hidden>
Date: 2008-11-21 09:00:59
Also in: lkml

On Fri, Nov 21, 2008 at 04:44:29PM +0900, Paul Mundt wrote:
On Thu, Nov 20, 2008 at 03:34:16PM -0500, Steven Rostedt wrote:
quoted
+} elsif ($arch eq "sh") {
+    $section_regex = "Disassembly of section\\s+(\\S+):";
+    $function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:";
+    $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\smcount\$";
+    $type = ".long";
+
+    # force flags for this arch
+    $ld .= " -m shlelf_linux";
+    $objcopy .= " -O elf32-sh-linux";
+    $cc .= " -m32";
+
Note that if the $alignment changes are in this version, you will also
need to add an $alignment = 2; for sh. That was in Matt's original patch,
but I stripped the alignment line out in the commit given that it was not
yet present in the mainline version of the script.
I've sent a patch to steven for his tip/devel branch that adds this line.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help