diff options
| author | Albert Aribaud <albert.aribaud@free.fr> | 2010-10-11 13:13:28 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2010-10-13 10:10:21 +0200 | 
| commit | 92d5ecba47feb9961c3b7525e947866c5f0d2de5 (patch) | |
| tree | fd0917489d0f6c5b55bc5b32fe1e7247c6817f73 /arch/arm/include/asm/u-boot-arm.h | |
| parent | 89bca0ab697fc75160dd0d685d7cb2ed26609a6d (diff) | |
| download | olio-uboot-2014.01-92d5ecba47feb9961c3b7525e947866c5f0d2de5.tar.xz olio-uboot-2014.01-92d5ecba47feb9961c3b7525e947866c5f0d2de5.zip | |
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>
Diffstat (limited to 'arch/arm/include/asm/u-boot-arm.h')
| -rw-r--r-- | arch/arm/include/asm/u-boot-arm.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h index faf800a17..4ac4f612e 100644 --- a/arch/arm/include/asm/u-boot-arm.h +++ b/arch/arm/include/asm/u-boot-arm.h @@ -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 |