Вс сен 09, 2012 20:00:41
...
resetHandler:
/* Dummy access to the .vectors section so it does not get optimized */
ldr r0, =resetVector
/* Set pc to actual code location (i.e. not in remap zone) */
ldr pc, =1f
/* Perform low-level initialization of the chip using LowLevelInit() */
1:
ldr r4, =_sstack
mov sp, r4
ldr r0, =LowLevelInit
mov lr, pc
bx r0
...
Чт сен 13, 2012 22:33:53
...
.relocate : AT (_efixed)
{
. = ALIGN(4);
_srelocate = .;
*(.vectors)
*(.ramfunc)
*(.data)
. = ALIGN(4);
_erelocate = .;
} >sram
...
LDFLAGS = -g $(OPTIMIZATION) -nostartfiles -Wl,--gc-sections
$ arm-elf-readelf -S
Сб сен 15, 2012 19:47:31
KEEP( *(.vectors))