]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86_64/kernel/vmlinux.lds.S
[PATCH] x86: tighten kernel image page access rights
[linux-2.6-omap-h63xx.git] / arch / x86_64 / kernel / vmlinux.lds.S
index 5176ecf006ee42fd71f46f49a781d0a98cc2e588..3bdeb88d28f4ffc2a8002ea588aa339973fbe4fa 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) {