[PATCH 2/2] linker_lists: Rework start/end macros to not rely on undefined behavior
Tom Rini
trini at konsulko.com
Tue Apr 4 20:47:40 CEST 2023
On Tue, Mar 28, 2023 at 02:54:51PM -0400, Tom Rini wrote:
> Per the GCC bug listed below, the way we do linker lists is relying on
> undefined behavior that seems to work in gcc, but doesn't always work in
> clang. Andrew suggests rewriting our start/end macros in a different way
> (as implemented here, from what he said in comment 1) to avoid these
> problems.
>
> Reported-by: AdityaK <appujee at google.com>
> Suggested-by: Andrew Pinski <apinski at marvell.com>
> Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108915
> Signed-off-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Andrew Pinski <apinski at marvell.com>
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/20230404/b758e668/attachment.sig>
More information about the U-Boot
mailing list