-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.init.data has both ordered and unordered sections #1507
Comments
Could be related to the binutils version? https://sourceware.org/bugzilla/show_bug.cgi?id=26256 apparently fixed in 2.36. |
Yes, that is what I was thinking and that seems very likely as the root cause of the issue. It is possible that we can turn off this combination of configuration options in Kconfig, or just recommend |
Is this an issue with newer GCC that supports -fpatchable-function-entries and older GNU binutils (2.34)? Or just newer clang plus older binutils? If the former, then perhaps the kconfig for -fpatchable-function-entries can be tied to binutils version. Otherwise, we may need kconfig checks for clang plus (lld or newer bfd). |
This problem was also reported by Will Deacon: https://lore.kernel.org/20220408115407.GA27685@willie-the-truck/ I suggested a diff to resolve it: https://lore.kernel.org/YlBuH2ScVeRO93AG@dev-arch.thelio-3990X/ |
Further information: https://lore.kernel.org/YlCA5PoIjF6nhwYj@dev-arch.thelio-3990X/ |
please cc the ML! |
Sorry, I did for this comment but then I replied to Will in a separate subthread and forgot to do it there :( will make sure to include it for any subsequent follow ups and patches. |
Patch accepted for the current merge window: https://git.kernel.org/arm64/c/45bd8951806eb5e857772c593de021b09057950d |
Merged into mainline: https://git.kernel.org/linus/45bd8951806eb5e857772c593de021b09057950d |
@roxell reported on IRC:
I reproduced it via the TuxMake arm64 clang-13 image (
docker.io/tuxmake/arm64_clang-13
) and it is reproducible on theclang-nightly
image as well. A locally producedclang-13
image based on Ubuntu 21.10 did not reproduce the issue:The issue is not present with
LLVM=1
.The text was updated successfully, but these errors were encountered: