@@ -20,6 +20,8 @@
#define LOAD_OFFSET __START_KERNEL_map
#endif
+#define EXCEPTION_TABLE_RO EXCEPTION_TABLE(16)
+
#include <asm-generic/vmlinux.lds.h>
#include <asm/asm-offsets.h>
#include <asm/thread_info.h>
@@ -113,8 +115,7 @@ SECTIONS
} :text = 0x9090
NOTES :text :note
-
- EXCEPTION_TABLE(16) :text = 0x9090
+ text_continues : {} :text /* switch back to regular text... */
X64_ALIGN_DEBUG_RODATA_BEGIN
RO_DATA(PAGE_SIZE)
@@ -219,6 +219,7 @@
*(.rodata1) \
} \
\
+ EXCEPTION_TABLE_RO \
BUG_TABLE \
\
JUMP_TABLE \
@@ -439,6 +440,10 @@
VMLINUX_SYMBOL(__stop___ex_table) = .; \
}
+#ifndef EXCEPTION_TABLE_RO
+#define EXCEPTION_TABLE_RO
+#endif
+
/*
* Init task
*/