Export the reset address as symbols and define them as entry point of
our inmates in the linker scripts. We will bundle the headers together
with the other library objects in archives, and defining entry points
will ensure that the related sections will be included in the final
binary. This will simplify the inmate rules significantly.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
.section ".boot", "ax"
.align 5
vectors:
- b vector_reset
+ b __reset_entry
b vector_undef
b vector_svc
b vector_pabt
vector irq
vector fiq
-vector_reset:
+ .globl __reset_entry
+__reset_entry:
ldr r0, =vectors
mcr p15, 0, r0, c12, c0, 0 @ VBAR
*(.data)
}
}
+
+ENTRY(__reset_entry)
.code16
.section ".boot", "ax"
+ .globl __reset_entry
+__reset_entry:
ljmp $0xf000,$start16
.code16
.section ".boot", "ax"
+ .globl __reset_entry
+__reset_entry:
ljmp $0xf000,$start16
*(.eh_frame*)
}
}
+
+ENTRY(__reset_entry)