Benoît Thébaudeau 96dd24836c cc2538: Use &vectors instead of flash/.text start address
The current CC2538 linker script in Contiki places the vector table at
the beginning of the flash memory / .text output section. However, this
location is arbitrary (the only requirement is that the vector table is
512-byte aligned), and custom linker scripts may be used with Contiki,
which means that Contiki may be used with a vector table placed
elsewhere. Thus, using the flash/.text start address in the CCA and as
the default NVIC VTABLE value was wrong.

This commit rather uses the address of the vectors[] array from
startup-gcc.c, which makes it possible to freely move around the vector
table without breaking anything or having to use a custom startup-gcc.c
and to configure the NVIC driver for that. Moreover, referencing the
vectors[] array naturally prevents it and its input section from being
garbage-collected by the linker, so this commit also removes the
now-unneeded "used" and "KEEP" keywords from the vector table.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2015-11-19 01:18:33 +01:00
..
2013-12-06 22:07:45 +01:00
2013-12-06 22:07:45 +01:00
2013-12-06 22:07:45 +01:00
2015-04-27 01:14:51 +02:00
2015-02-16 10:17:58 +01:00
2014-04-13 14:38:00 +01:00
2015-02-16 10:17:58 +01:00
2013-12-06 22:07:45 +01:00
2015-05-18 10:02:55 +02:00
2015-06-05 21:50:49 +02:00
2015-05-12 23:42:19 +01:00
2015-05-12 23:42:19 +01:00