osd-contiki/cpu
Benoît Thébaudeau 0d260f61a0 cc2538: Fix .data LMA/VMA mismatch with some toolchains
Some toolchains, like Sourcery CodeBench Lite 2013.05-23 arm-none-eabi
(http://sourcery.mentor.com/public/gnu_toolchain/arm-none-eabi/)
automatically force the alignment of an output section LMA to use the
maximum alignment of all its input sections. This toolchain uses GNU
binutils 2.23, and this automatic behavior is the same as the manual
behavior of the ALIGN_WITH_INPUT feature of GNU binutils 2.24+.

This behavior is not an issue per se, but it creates a gap between
_etext and the LMA of the .data output section if _etext does not have
the same alignment, while reset_handler() initialized this section by
copying the data from _etext to its VMA, hence an offset in the
addresses of loaded data, and missing data.

This commit fixes this issue by making reset_handler() directly use the
LMA of the .data section using LOADADDR(.data), rather than assuming
that _etext is this LMA.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2015-05-23 18:12:53 +02:00
..
6502 Merge remote-tracking branch 'upstream/master' 2015-04-26 14:35:40 +02:00
arm Fix aducrf101 builds with GCC 4.9+ 2015-02-16 14:52:05 -05:00
avr Move MAX, MIN and ABS to sys/cc.h 2015-05-18 08:53:17 +02:00
cc26xx Merge pull request #1074 from g-oikonomou/cc26xx/contrib/new-cc26xxware 2015-05-21 10:01:00 +02:00
cc253x Fix clock.h warnings caused by multiple, conflicting documentation blocks of clock functions 2015-02-15 21:48:30 +01:00
cc2430 Fix clock.h warnings caused by multiple, conflicting documentation blocks of clock functions 2015-02-15 21:48:30 +01:00
cc2538 cc2538: Fix .data LMA/VMA mismatch with some toolchains 2015-05-23 18:12:53 +02:00
mc1322x mc1322x: remove rest tutorial 2015-05-14 17:20:46 -04:00
msp430 Merge pull request #809 from cmorty/pull/msp430_gstabs 2015-05-16 11:01:47 +02:00
native Network layer configuration: replace UIP_CONF_* with NETSTACK_CONF_WITH_* 2014-12-01 21:02:57 +01:00
pic32 [cpu/pic32] Removed excess end group 2014-11-10 23:53:33 +01:00
rl78 Move MAX, MIN and ABS to sys/cc.h 2015-05-18 08:53:17 +02:00
stm32w108 Use additive offsets 2015-03-28 17:28:15 +01:00
x86 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00