The official git repository for OSD-Contiki, the open source OS for the Internet of Things
0d260f61a0
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> |
||
---|---|---|
apps | ||
core | ||
cpu | ||
dev | ||
doc | ||
examples | ||
platform | ||
regression-tests | ||
tools | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile.include | ||
README-BUILDING.md | ||
README-EXAMPLES.md | ||
README.md |
The Contiki Operating System
Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.
Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.
For more information, see the Contiki website: