Skip to contentSkip to conversation

parisc: Move exception table into read-only section

PATCH New Helge Deller 1 participant 1 message Oct 8, 2016 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Move exception table into read-only section

The exception tables are sorted during buildtime (due to BUILDTIME_EXTABLE_SORT), so it's safe to move those into the read-only kernel section.

arch/parisc/kernel/vmlinux.lds.S +4 -2
index b37787d..f366a1a 100644
@@ -106,6 +106,10 @@ SECTIONS
 	}
 #endif
 
+	/* RO because we have BUILDTIME_EXTABLE_SORT */
+	EXCEPTION_TABLE(8)
+	NOTES
+
 	/* unwind info */
 	.PARISC.unwind : {
 		__start___unwind = .;
@@ -121,9 +125,6 @@ SECTIONS
 	. = ALIGN(HUGEPAGE_SIZE);
 	data_start = .;
 
-	EXCEPTION_TABLE(8)
-	NOTES