From: Kate Alhola <kate@iti.fi>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Compiling relocatable code and DATA for PPC
Date: Thu, 25 Mar 2004 11:13:53 +0200 [thread overview]
Message-ID: <4062A2D1.50901@iti.fi> (raw)
In-Reply-To: <20040324152226.5D224C0655@atlas.denx.de>
Wolfgang Denk wrote:
>>All examples that i have found uses static addresses. Also using
>>google i have not found any answers.
>>
>>
>
>You will either have to use PIC (which is not what U-Boot does), or
>use a static link address (which is what U-Boot does for standalone
>applications), or use relocatable code that you can (manually)
>relocate to a target address of your choice (which is what U-Boot
>does for the U-Boot code itself).
>
>
The thing that i like to use is PIC and PID ( position independent data
and code ).
U-boot allows to load my code in any address and i really don't like to
manually
relocate it. I like to have ready compiled code parts in mass media (
flash ) and
i like to to allow load them to any free address.
There is this same problem allways if you use non-mmu processor like MPC555
and you like to load more than just one fixed program into memory.
You should remember that the applications loaded with u-boot are not
allways just "stand-alone" apps or Linux. Based on my knowledge there is
not even Linux for mpc555. I our case i like to load my open source rtos
kernel ( Katix ) and then applications for it.
Becouse u-boot runs in many non-mmu processors i was just thinking
that some u-boot user has had same problem and find already answer.
I have searched all around internet to find answer but not yet find one.
-fpic should
make program code position independent and -msdata=eabi -G20000
should put all static data smaller than 20000 bytes to relative to
r2(const data)
or r13 . For some reason gcc says that -msdata=eabi and -fpic
are incompatible and even -msdata=eabi does not make data references
as register relative.
Kate
prev parent reply other threads:[~2004-03-25 9:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 14:47 [U-Boot-Users] Compiling relocatable code and DATA for PPC Kate Alhola
2004-03-24 15:22 ` Wolfgang Denk
2004-03-25 9:13 ` Kate Alhola [this message]
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=4062A2D1.50901@iti.fi \
--to=kate@iti.fi \
--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.