Skip to content
Commit e7b4ca44 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 <pinskia@gcc.gnu.org>
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108915


Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent df543a2a
Loading
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