[PATCH] Generic BUG implementation
[firefly-linux-kernel-4.4.55.git] / include / asm-generic / vmlinux.lds.h
index 4d4c62d11059e84718c8c104c59eba270728fb58..6e9fcebbf89f3ab9cb7a42c74933afe28c3eee72 100644 (file)
                .stab.indexstr 0 : { *(.stab.indexstr) }                \
                .comment 0 : { *(.comment) }
 
+#define BUG_TABLE                                                      \
+       . = ALIGN(8);                                                   \
+       __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) {             \
+               __start___bug_table = .;                                \
+               *(__bug_table)                                          \
+               __stop___bug_table = .;                                 \
+       }
+
 #define NOTES                                                          \
                .notes : { *(.note.*) } :note