[PATCH 1/8] Compiler attributes: GCC function alignment workarounds
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Sun Jan 15 13:32:38 PST 2023
On Fri, Jan 13, 2023 at 1:49 PM Mark Rutland <mark.rutland at arm.com> wrote:
>
> It turns out that was a red herring; GCC is actually implicitly marking the
> abort() function as cold, and as Linux's implementation happened to be marked
> as weak I assumed that was the culprit.
That and your previous message probably explains probably why I
couldn't reproduce it.
Thanks a lot for all the details -- the `cold` issue is reproducible
since gcc 4.6 at least: https://godbolt.org/z/PoxazzT9T
The `abort` case appears to happen since gcc 8.1.
Cheers,
Miguel
More information about the linux-arm-kernel
mailing list