[ECOS] How to generate position independ code

james chen james_ch1@sina.com
Wed Oct 24 21:12:00 GMT 2001


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




More information about the Ecos-discuss mailing list