[PATCH u-boot v4 17/36] sandbox: use sections instead of symbols for getopt array boundaries
Tom Rini
trini at konsulko.com
Tue May 25 02:55:48 CEST 2021
On Thu, May 20, 2021 at 01:24:06PM +0200, Marek Behún wrote:
> In style of linked lists, instead of declaring symbols for boundaries
> of getopt options array in the linker script, declare corresponding
> sections and retrieve the boundaries via static inline functions.
>
> Without this clang's LTO produces binary without any getopt options,
> because for some reason it thinks that array is empty (start and end
> symbols are at the same address).
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/31122a82/attachment.sig>
More information about the U-Boot
mailing list