public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] [PATCH] arm: arm926ejs: use ELF relocations
Date: Wed, 30 Mar 2011 07:06:01 +0200	[thread overview]
Message-ID: <4D92BA39.9020909@free.fr> (raw)
In-Reply-To: <128737.38661.qm@web15802.mail.cnb.yahoo.com>

Hi,

(how is this an RFC or PATCH? There is none in this mail)

Le 30/03/2011 01:13, du zhigang a ?crit :
> dear:
>
> i am using u-boot 2011.03-rc1 compiled by CS arm-none-eabi-gcc 4.5.1
>
> board at91sam9263ek_norflash_boot_config i using gdb 6.8.1 debug it
>
> when u-boot compiledi found an error
>
> /dzg/crosstool/4.5.1/bin/.arm-none-eabi-ld: warning: creating a
> DT_TEXTREL in object.
>
> /dzg/x86/insight-6.8-1/gdb/insight -se u-boot
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 37
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 32
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 53
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 1
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 20
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 82
>  >= 0 for section `'
>
> BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 67
>  >= 0 for section `'
>
> when i set breakpoint such as
>
> b board_init_f it seems to show wrong line number at line 132
>
> i also found this version of u-boot change board_init_f to run in flash
>
> why dose it? in version 2010.09 it run after relocated in ram
>
> i found the linker linkinit_fnc_t *init_sequence[]
>
> functions with address like 0x23fxxxxx

All this is the normal result of ARM relocation introduction, which I 
sense you already know judging from the subject of your post.

> what does the linker do with -pie option does it link the functions run
> in flash with addr like 0xaxxxx?

Not exactly -- a toolchain has no notion of flash vs RAM. The -pie 
option, as the binutil documentation states, produces a relocatable binary.

> do you test eldk 4.2 compiled with this board and run in norflash?

This is formally the board maintainer's work; see MAINTAINERS. However, 
many other ARM boards are tested with ELDK 4.2 or CodeSourcery 2010q1 
for instance.

Note that you can provide patches which the maintainer will just have to 
Ack, as well.

> thanks
>
> best regards

Amicalement,
-- 
Albert.

  reply	other threads:[~2011-03-30  5:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29 23:13 [U-Boot] [RFC] [PATCH] arm: arm926ejs: use ELF relocations du zhigang
2011-03-30  5:06 ` Albert ARIBAUD [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-05  6:13 Wolfgang Denk
2010-10-05  6:33 ` Albert ARIBAUD
2010-10-04 22:01 Albert Aribaud
2010-10-04 22:09 ` Albert ARIBAUD
2010-10-04 23:57   ` John Rigby
2010-10-05  0:01     ` Graeme Russ
2010-10-05  5:34       ` Wolfgang Denk
2010-10-05  5:40         ` Graeme Russ
2010-10-05  5:42           ` Graeme Russ
2010-10-05  6:13             ` Albert ARIBAUD
2010-10-05  5:30   ` Wolfgang Denk
2010-10-05  5:41     ` J. William Campbell
2010-10-05  5:47     ` Albert ARIBAUD
2010-10-04 22:22 ` Graeme Russ
2010-10-04 22:57   ` Albert ARIBAUD
2010-10-04 23:21     ` Graeme Russ
2010-10-05  0:16       ` Albert ARIBAUD
2010-10-05  3:42         ` J. William Campbell
2010-10-04 23:23 ` Graeme Russ
2010-10-04 23:59   ` Albert ARIBAUD
2010-10-05  6:11 ` Wolfgang Denk

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=4D92BA39.9020909@free.fr \
    --to=albert.aribaud@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox