kernel/include/asm-generic/vmlinux.lds.h
.. .. @@ -947,7 +947,12 @@ 947 947 #define TRACEDATA 948 948 #endif 949 949 950 +/*951 + * Discard .note.GNU-stack, which is emitted as PROGBITS by the compiler.952 + * Otherwise, the type of .notes section would become PROGBITS instead of NOTES.953 + */950 954 #define NOTES \ 955 + /DISCARD/ : { *(.note.GNU-stack) } \951 956 .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ 952 957 __start_notes = .; \ 953 958 KEEP(*(.note.*)) \