This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to generate position independ code


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]