[RFC PATCH 5/9] linker_lists.h: drop _2 from section and symbol name prefix

Tom Rini trini at konsulko.com
Sat May 23 00:44:54 CEST 2026


On Fri, May 22, 2026 at 11:27:52PM +0200, Rasmus Villemoes wrote:

> Since commit e2138cf1e60 ("linker_lists.h: drop never used ll_start,
> ll_end macros"), which removed macros that would create
> __u_boot_list_1 and __u_boot_list_3 sections, the first _2 in the
> linker list section names doesn't serve any purpose and is in fact
> just confusing. So remove it.
> 
> There never seemed to be a reason for the symbol names to have that
> _2, other than perhaps for consistency with the section those symbols
> belonged to. Regardless, remove that as well.
> 
> All linker scripts use a "__u_boot_list*" glob, so they will work just
> the same without that common _2.
> 
> Keep the _2_ part in the separator between list and entry names for
> symbols, since that is called out in the documentation to allow one to
> define sublists and iterate over those. I cannot find any current use
> of that feature, but a later patch will make use of just that.
> 
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260522/93149a4e/attachment.sig>


More information about the U-Boot mailing list