All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] arm: implement ELF relocations
Date: Wed, 06 Oct 2010 07:37:37 +0200	[thread overview]
Message-ID: <4CAC0B21.5030602@denx.de> (raw)
In-Reply-To: <1286307660-7969-1-git-send-email-albert.aribaud@free.fr>

Hello albert,

Albert Aribaud wrote:
> 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>
> ---
>  arch/arm/config.mk                |   10 +-
>  arch/arm/cpu/arm926ejs/start.S    |  172 ++++++++++++++++-------------
>  arch/arm/cpu/arm926ejs/u-boot.lds |   14 +++
>  arch/arm/include/asm/u-boot-arm.h |   14 +-
>  arch/arm/lib/board.c              |    8 +-
>  doc/README.arm-relocation         |  222 +++++++------------------------------
>  6 files changed, 167 insertions(+), 273 deletions(-)
> 
[...]
> diff --git a/arch/arm/cpu/arm926ejs/start.S b/arch/arm/cpu/arm926ejs/start.S
> index a960689..f97f8ac 100644
> --- a/arch/arm/cpu/arm926ejs/start.S
> +++ b/arch/arm/cpu/arm926ejs/start.S
[...]
> @@ -153,29 +151,21 @@ FIQ_STACK_START:
>  IRQ_STACK_START_IN:
>  	.word	0x0badc0de
>  
> -.globl _datarel_start
> -_datarel_start:
> -	.word __datarel_start
> -
> -.globl _datarelrolocal_start
> -_datarelrolocal_start:
> -	.word __datarelrolocal_start
> -
> -.globl _datarellocal_start
> -_datarellocal_start:
> -	.word __datarellocal_start
> +.globl _datarel_start_ofs
> +_datarel_start_ofs:
> +	.word __datarel_start - _start
>  
> -.globl _datarelro_start
> -_datarelro_start:
> -	.word __datarelro_start
> +.globl _datarelrolocal_start_ofs
> +_datarelrolocal_start_ofs:
> +	.word __datarelrolocal_start - _start

We no longer need this __datarel* vars with your version
of relocation, please delete!

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  parent reply	other threads:[~2010-10-06  5:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 19:40 [U-Boot] [PATCH 1/2] arm: implement ELF relocations Albert Aribaud
2010-10-05 19:41 ` [U-Boot] [PATCH 2/2] edminiv2: add support for " Albert Aribaud
2010-10-06  5:30   ` Heiko Schocher
2010-10-06  5:55     ` Albert ARIBAUD
2010-10-06  5:37 ` Heiko Schocher [this message]
2010-10-06  5:54   ` [U-Boot] [PATCH 1/2] arm: implement " Albert ARIBAUD
2010-10-06  6:01   ` Reinhard Meyer
2010-10-06  6:29     ` Albert ARIBAUD
2010-10-06  6:45       ` Reinhard Meyer
2010-10-06  7:03         ` Albert ARIBAUD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CAC0B21.5030602@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.