lkml.org 
[lkml]   [2024]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] arm32: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION
On Thu, Mar 7, 2024, at 04:09, liuyuntao (F) wrote:
> On 2024/2/27 16:06, liuyuntao (F) wrote:
>>
>>
>> On 2024/2/23 0:04, Arnd Bergmann wrote:
>>> On Thu, Feb 22, 2024, at 12:24, liuyuntao (F) wrote:
>>>>
>>>> The position of the caret has been moved below the right brace
>>>> of { KEEP(*(.vectors.bhb.loop8)) }, indicating that lld is treating
>>>> the entire `KEEP(*(.vectors))` as a file name. This could potentially be
>>>> a bug in lld. Perhaps we can temporarily
>>>> enable the DCE option only when option LD_IS_LLD is disabled,
>>>> like risc-v:
>>>>
>>>> `select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD`.
>>>
>>> I would really like to see this working with lld if at all
>>> possible, as it allows the combination of gc-sections with
>>> lto and CONFIG_TRIM_UNUSED_KSYMS.
>>
> Another way to preserve .vector sections without using KEEP annotation.
> It boots well. How do you feel about this approach? and, could I submit
> a v2 patch?

Yes, if that works, please submit it as v2, we'll see if anyone
has concerns about the new version then.

Arnd

\
 
 \ /
  Last update: 2024-05-27 15:39    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog