Ensure header and _start are placed at the beginning of the object file, and
authorTJ <linux@tjworld.net>
Sat, 30 Oct 2010 17:48:36 +0000 (18:48 +0100)
committerTJ <linux@tjworld.net>
Sat, 30 Oct 2010 17:51:10 +0000 (18:51 +0100)
fixup references now arch-init-7x30.S is being used.

arch/arm-head.S

index 2fb6a79..12a6571 100644 (file)
@@ -20,7 +20,7 @@
 #include <boot/linkage.h>
 #include <boot/version.h>
 
-    .section ".start", #alloc, #execinstr
+    .section ".text", #alloc, #execinstr
 ENTRY(_start)
     .type _start,#function
     b       __cpu_early_init
@@ -46,13 +46,14 @@ build:
     .asciz BUILD_STRING
     .align 4
 
-ENTRY(__cpu_early_init)
+ENTRY(__init)
     mrc     p15,0,r0,c1,c0          @ read control register configuration data
     bic     r0,r0,#0x0000B000       @ clear bit 10: Should Be Zero
     bic     r0,r0,#0x00000005       @ bit 2: data cache disabled. bit 0: MMU disable
     orr     r0,r0,#0x00000002       @ bit 1: strict alignment checks enabled
     mcr     p15,0,r0,c1,c0          @write control register configuration
-    bl      __init_msm_7x30
-.ltorg
+    bl      SET_SA
 
+// when built binary image of arch-init-7x30.S should follow immediately
+    .align 1
 // EOF