From: TJ Date: Sat, 30 Oct 2010 17:48:36 +0000 (+0100) Subject: Ensure header and _start are placed at the beginning of the object file, and X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=bootloader-ap.git;a=commitdiff_plain;h=63c118da714716981efa95c2352bf5ae7b605a03 Ensure header and _start are placed at the beginning of the object file, and fixup references now arch-init-7x30.S is being used. --- diff --git a/arch/arm-head.S b/arch/arm-head.S index 2fb6a79..12a6571 100644 --- a/arch/arm-head.S +++ b/arch/arm-head.S @@ -20,7 +20,7 @@ #include #include - .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