Re: [PATCH v6 23/23] xen/riscv: do a 4th linking pass if necessary

Oleksii Kurochko <[email protected]>
Newsgroups org.xenproject.lists.xen-devel
Message-ID <[email protected]>

On 7/21/26 9:29 AM, Jan Beulich wrote:
> On 20.07.2026 18:00, Oleksii Kurochko wrote:
>> Embedding the symbol table can shift sections and flip relaxation
>> decisions, changing code size and thus the set of emitted tools/symbols
>> (e.g. gap end markers).  Re-link with a regenerated table when its
>> size differs from the previous pass.
>>
>> This takes the same remedy as commit 35de7285d508 ("Arm: do a 4th
>> linking pass if necessary"), though the underlying cause differs:
>> here no symbol (dis)appears from the ELF symbol table; instead the
>> set of end markers emitted by tools/symbols legitimately changes,
>> because want_symbol_end() depends on code layout, and layout differs
>> between passes due to linker relaxation.
>>
>> Signed-off-by: Oleksii Kurochko <[email protected]>
> 
> Acked-by: Jan Beulich <[email protected]>
> 
> And I think there's no dependency on earlier patches, so this could go
> in pretty much right away?

There is no any dependency and could go earlier then other patches.

Thanks.

~ Oleksii
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.