[PATCH] x86: tighten kernel image page access rights
[pandora-kernel.git] / arch / x86_64 / kernel / vmlinux.lds.S
index 5176ecf..3bdeb88 100644 (file)
@@ -29,6 +29,7 @@ SECTIONS
   .text :  AT(ADDR(.text) - LOAD_OFFSET) {
        /* First the code that has to be first for bootstrapping */
        *(.bootstrap.text)
+       _stext = .;
        /* Then all the functions that are "hot" in profiles, to group them
            onto the same hugetlb entry */
        #include "functionlist"
@@ -50,10 +51,10 @@ SECTIONS
   __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { *(__ex_table) }
   __stop___ex_table = .;
 
-  RODATA
-
   BUG_TABLE
 
+  RODATA
+
   . = ALIGN(PAGE_SIZE);        /* Align data segment to page size boundary */
                                /* Data */
   .data : AT(ADDR(.data) - LOAD_OFFSET) {