Re: [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled

From: Chen Gang
Date: Fri Apr 24 2015 - 10:28:10 EST


On 4/24/15 16:20, Steven Miao wrote:
> On Thu, Apr 23, 2015 at 10:30 PM, Chen Gang <xili_gchen_5257@xxxxxxxxxxx> wrote:
>>
>> OK, thanks. I guess your meaning is:
>>
>> - If the kernel is too big, it may let the pc which wants to call L1
>> space fail.
>>
>> - So the kernel is too big to cause this issue, but it is nothing with
>> 'overwritten' in my original patch comments.
>>
> Yes, it is.

OK, thanks.

>> - We can treat it as environments limitation, then can use COMPILE_TEST
>> for it. So this patch is still OK, except the related comments need
>> be improved (at least need to remove 'overwritten').
>>
> If pc-relative CALL will fail, there will be "relocation truncated to
> fit: R_BFIN_PCREL24" warnings.

OK, thanks. for me, we need to skip these warnings when COMPILE_TEST
is set, so can continue compiling (or will cause building break).

>>
>> I guess, what I said above is meaningless (although it is correct).
>>
>>>> - if kernel is too big, the contents before l1.text (the other contents
>>>> in .init.text) will override it, so ld reports issues.
>>
> Actually the kernel which is large the 16M could not happen, large
> size kernel image is not sugguested on a embedded system.
>

OK, thanks. So for me, it should only happen when COMPILE_TEST is set,
should not happen in real world using.


Thanks.
--
Chen Gang

Open, share, and attitude like air, water, and life which God blessed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/