BACKPORT: ARM: 8583/1: mm: fix location of _etext
[firefly-linux-kernel-4.4.55.git] / arch / arm / kernel / vmlinux.lds.S
index 8b60fde5ce48a628e5d1f2c682d2aa0684ed6642..be2ab6d3b91f67d6b04e0d446776f5475eac4c7b 100644 (file)
@@ -120,6 +120,8 @@ SECTIONS
 #ifdef CONFIG_DEBUG_RODATA
        . = ALIGN(1<<SECTION_SHIFT);
 #endif
+       _etext = .;                     /* End of text section */
+
        RO_DATA(PAGE_SIZE)
 
        . = ALIGN(4);
@@ -150,8 +152,6 @@ SECTIONS
 
        NOTES
 
-       _etext = .;                     /* End of text and rodata section */
-
 #ifndef CONFIG_XIP_KERNEL
 # ifdef CONFIG_ARM_KERNMEM_PERMS
        . = ALIGN(1<<SECTION_SHIFT);