hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/asm-generic/vmlinux.lds.h
....@@ -947,7 +947,12 @@
947947 #define TRACEDATA
948948 #endif
949949
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
+ */
950954 #define NOTES \
955
+ /DISCARD/ : { *(.note.GNU-stack) } \
951956 .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \
952957 __start_notes = .; \
953958 KEEP(*(.note.*)) \