mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
arm: implement ELF relocations
ELF relocation tables generated with linker option -pie can be used to fixup code and data in a single loop at relocation, removing the need for manual fixups anywhere else in the code. Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
This commit is contained in:
parent
89bca0ab69
commit
92d5ecba47
7 changed files with 156 additions and 290 deletions
|
@ -30,18 +30,18 @@
|
|||
#define _U_BOOT_ARM_H_ 1
|
||||
|
||||
/* for the following variables, see start.S */
|
||||
extern ulong _bss_start; /* code + data end == BSS start */
|
||||
extern ulong _bss_end; /* BSS end */
|
||||
extern ulong _bss_start_ofs; /* BSS start relative to _start */
|
||||
extern ulong _bss_end_ofs; /* BSS end relative to _start */
|
||||
extern ulong IRQ_STACK_START; /* top of IRQ stack */
|
||||
extern ulong FIQ_STACK_START; /* top of FIQ stack */
|
||||
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
|
||||
extern ulong _armboot_start; /* code start */
|
||||
extern ulong _armboot_start_ofs; /* code start */
|
||||
#else
|
||||
extern ulong _TEXT_BASE; /* code start */
|
||||
extern ulong _datarel_start;
|
||||
extern ulong _datarelrolocal_start;
|
||||
extern ulong _datarellocal_start;
|
||||
extern ulong _datarelro_start;
|
||||
extern ulong _datarel_start_ofs;
|
||||
extern ulong _datarelrolocal_start_ofs;
|
||||
extern ulong _datarellocal_start_ofs;
|
||||
extern ulong _datarelro_start_ofs;
|
||||
extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue