u-boot-brain/arch/arm
Georges Savoundararadj c57a642384 arm: make .vectors section allocatable
A regression was introduced in commit 41623c91. The consequence of that
is the non-relocation of the section .vectors symbols :
_undefined_instruction, _software_interrupt, _prefetch_abort,
_data_abort, _not_used, _irq and _fiq.

Before commit 41623c91, the exception vectors were in a .text section.
The .text section has the attributes allocatable and executable [1].

In commit 41623c91, a specific section is created, called .vectors, with
the attribute executable only.

What have changed between commit 41623c91^ and 41623c91 is the attribute
of the section which contains the exception vectors.
An allocatable section is "a section [that] occupies memory during
process execution" [1] which is the case of the section .vectors.
Adding the lacking attribute (SHF_ALLOC or "a") for the definition of
the section .vectors fixed the issue.

To summarize, the fix has to mark .vectors as allocatable because the
exception vectors reside in "memory during execution" and they need to
be relocated.

[1] http://man7.org/linux/man-pages/man5/elf.5.html

Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
2014-10-29 09:02:17 -04:00
..
cpu kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
dts odroid: dts: fix name of included dtsi 2014-10-27 19:21:08 -06:00
imx-common Rename some defines containing FAT in their name to be filesystem generic 2014-10-27 11:04:01 -04:00
include/asm Merge branch 'master' of git://git.denx.de/u-boot-imx 2014-10-27 09:08:42 -04:00
lib arm: make .vectors section allocatable 2014-10-29 09:02:17 -04:00
mvebu-common arm: kirkwood: Change naming of dram functions from km_foo() to mvebu_foo() 2014-10-23 09:59:21 -04:00
config.mk kconfig: delete redundant CONFIG_${ARCH} definition 2014-07-30 14:42:02 -04:00
Kconfig kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00