[PATCH] arm: remove backtrace.s when ARM_UNWIND enable

ye janboe janboe.ye at gmail.com
Wed Aug 11 13:24:29 EDT 2010


backtrace.o also need to be linked when FRAME_POINTER is not set.

At this situation, __backtrace and c_backtrace are empty functions.

Janboe

2010/8/12 Catalin Marinas <catalin.marinas at arm.com>:
> On Wed, 2010-08-11 at 17:08 +0100, janboe wrote:
>> backtrace.s can only work with FRAME_POINTER, so disable when
>> ARM_UNWIND enabled
>>
>> Signed-off-by: janboe <janboe.ye at gmail.com>
> [...]
>> +ifneq ($(CONFIG_ARM_UNWIND),y)
>> +  lib-y        += backtrace.o
>> +endif
>
> Could we use CONFIG_FRAME_POINTER (and negate the conditions in your
> patch)? The above would be:
>
> lib-$(CONFIG_FRAME_POINTER) += backtrace.o
>
> --
> Catalin
>
>



More information about the linux-arm-kernel mailing list