https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99113
--- Comment #4 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #3) > (In reply to Sergei Trofimovich from comment #2) > > 3. I tried to add '.data.event*' (and similar) to linux ldscript and it was > > not enough for me to built a kernel that does not crash. Which might hint at > > binutils bug or linux loader bug (or at my bad attempt at adding sections). > > There are many different section names. Yeah, that makes sense. My attempt was: --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -102,7 +102,7 @@ #define SBSS_MAIN .sbss .sbss.[0-9a-zA-Z_]* #else #define TEXT_MAIN .text -#define DATA_MAIN .data +#define DATA_MAIN .data .data.event* .data.__syscall_meta__* #define SDATA_MAIN .sdata #define RODATA_MAIN .rodata #define BSS_MAIN .bss