You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coincidentally, I mentioned this exact GCC misfeature to Bob yesterday. This has come up in the past, and our stance then was that this was always an escaping bug that GCC should fix. Previously people used to use this in creative ways to change the protections of the section, but I don't think it is possible anymore, at least not without using the comment character.
Coincidentally, I mentioned this exact GCC misfeature to Bob yesterday. This
has come up in the past, and our stance then was that this was always an
escaping bug that GCC should fix. Previously people used to use this in
creative ways to change the protections of the section, but I don't think it
is possible anymore, at least not without using the comment character.
As a person that has tried to use that hack, it is highly unstable and not cross-architecture portable, and should not be used. :P
Extended Description
int foo attribute((section("".foo"")));
In Clang produces:
.section "".foo"","aw",@progbits
In GCC:
.section ".foo","aw"
This is leading to a bug in Clang built Linux kernels for distros that use BPF (not eBPF) during boot, causing them to fail to boot.
ClangBuiltLinux/linux#619
The text was updated successfully, but these errors were encountered: