Re: [PATCH 08/10] dm: core: Deal with a wrinkle with linker lists

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:20PM -0600, Simon Glass wrote: > When every member of a linker list is aligned by the compiler, we can no > longer rely on the sizeof of the struct to determine the number of > entries. > > For example, if the struct size is 0x90 but every entry is aligned to 0xa0 >

[PATCH 08/10] dm: core: Deal with a wrinkle with linker lists

2022-03-27 Thread Simon Glass
When every member of a linker list is aligned by the compiler, we can no longer rely on the sizeof of the struct to determine the number of entries. For example, if the struct size is 0x90 but every entry is aligned to 0xa0 by the compiler, the linker list entries takes more space in memory and th