This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
How to generate position independ code
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] How to generate position independ code
- From: "james chen" <james_ch1 at sina dot com>
- Date: Thu, 25 Oct 2001 11:53:46 +0800
Hi,
may be this question is out of mail lists. but I wish somebody can help
me:-).
I want to generate an position independ code application which can be run in
anywhere(+/- 32M). I use -fPIC flag to control it. but it only generate
*.text* of PIC, *.data* of PIC doesn't generate, it still use fixed address
which I set in memory layout to access it.
now I only test it in gcc ( linux synthetic target), and I also want it
can use in arm-elf-gcc(ARM target).
anyone can help me? thanks in advance.
Best Regards,
james