lkml.org 
[lkml]   [2020]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] ARC: initial ftrace support
Date
Hi Claudiu,
ping!

Is is possible to switch between mcount modes (Linux-style <-> baremetal-style) via command-line options for ARC GCC?

>From: Alexey Brodkin <abrodkin@synopsys.com>
>Sent: Thursday, April 2, 2020 17:15
>To: Claudiu Zissulescu Ianculescu
>Cc: linux-kernel@vger.kernel.org; Steven Rostedt; Ingo Molnar; linux-snps-arc@lists.infradead.org; Eugeniy Paltsev; Vineet Gupta
>Subject: RE: [RFC] ARC: initial ftrace support
>
> Hi Claus,
>
>> -----Original Message-----
>> From: linux-snps-arc <linux-snps-arc-bounces@lists.infradead.org> On Behalf Of Claudiu Zissulescu
>> Ianculescu
>> Sent: Thursday, April 2, 2020 11:10 AM
>> To: Vineet Gupta <vgupta@synopsys.com>
>> Cc: Alexey Brodkin <abrodkin@synopsys.com>; linux-kernel@vger.kernel.org; Steven Rostedt
>> <rostedt@goodmis.org>; Ingo Molnar <mingo@redhat.com>; linux-snps-arc@lists.infradead.org; Eugeniy
>> Paltsev <paltsev@synopsys.com>
>> Subject: Re: [RFC] ARC: initial ftrace support
>>
>> Hi,
>>
>> ARC-gcc has two modes to call the mcount routines. When using elf32
>> configuration, the toolchain is set to use newlib mcount. When
>> configured for linux, gcc toolchain is using a library call to _mcall
>> (single underscore) having blink as input argument.
>> So, using the proper linux toolchain, your patch should work.
>
>
> Is there a chance to switch to Linux-style mcount in Elf32 toolchain with a command-line
> option?
>
> Otherwise I guess we'll need to implement some warning which explicitly says why Elf32
> toolchain is not usable for building the Linux kernel... at least in case with ftrace enabled.
>
>-Alexey

\
 
 \ /
  Last update: 2020-05-14 15:10    [W:0.071 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site