rk3288:pmic:act8846:support pmic act8846 for new hardware
[firefly-linux-kernel-4.4.55.git] / arch / arm / kernel / vmlinux.lds.S
index a871b8e00fca7d67141859bbb2415dadabbc1ad5..fb1e0d78c285be0c948656b225effb4e376bbf83 100644 (file)
@@ -81,6 +81,8 @@ SECTIONS
 #ifndef CONFIG_SMP_ON_UP
                *(.alt.smp.init)
 #endif
+               *(.pie.*)
+               *(.ARM.exidx.pie.*.text)
                *(.discard)
                *(.discard.*)
        }
@@ -152,6 +154,23 @@ SECTIONS
        . = ALIGN(PAGE_SIZE);
        __init_begin = .;
 #endif
+       /*
+        * The vectors and stubs are relocatable code, and the
+        * only thing that matters is their relative offsets
+        */
+       __vectors_start = .;
+       .vectors 0 : AT(__vectors_start) {
+               *(.vectors)
+       }
+       . = __vectors_start + SIZEOF(.vectors);
+       __vectors_end = .;
+
+       __stubs_start = .;
+       .stubs 0x1000 : AT(__stubs_start) {
+               *(.stubs)
+       }
+       . = __stubs_start + SIZEOF(.stubs);
+       __stubs_end = .;
 
        INIT_TEXT_SECTION(8)
        .exit.text : {