hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
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.*)) \