[prev in list] [next in list] [prev in thread] [next in thread]
List: uclinux-dev
Subject: Re: [uClinux-dev] Non-PIC gcc usable?
From: David McCullough <davidm () snapgear ! com>
Date: 2001-12-24 11:43:44
[Download RAW message or body]
Jivin Kazu Hirata lays it down ...
> Hi David,
>
> > > Is it possible to use gcc that does not support PIC to compile
> > > applications for uClinux?
> >
> > Absolutely, the coldfire port ran like this for quite some time.
> > Basically you just use flat binaries where the code+data is
> > relocated at execute time. The cost is it requires more memory.
>
> I see. After getting your response, I started reading binfmt_flat.c
> and found it helpful.
>
> Does an access to absolute address (like I/O port) get moved as well?
> I know that an application should go through the kernel to access I/O
> ports, but in some cases, it's so tempting.
No, it's a constant, not a variable or reference within the program.
Cheers,
Davidm
--
David McCullough: Ph: +61 7 3435 2815 http://www.SnapGear.com
davidm@snapgear.com Fx: +61 7 3891 3630 825 Stanley St., W'gabba QLD 4102, Oz
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic