Skip to content
Commit d0e3378a authored by Tom Rini's avatar Tom Rini
Browse files

linker_lists: Rework start/end macros to not rely on undefined behavior



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: default avatarAdityaK <appujee@google.com>
Suggested-by: default avatarAndrew Pinski <apinski@marvell.com>
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108915


Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarAndrew Pinski <apinski@marvell.com>
parent 65fa29d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment