This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -msep-data without -fPIC ?


On Tue, Jan 17, 2006 at 01:35:59PM +0100, Philippe De Muyter wrote:
> Gunther Nikl wrote :
> > On Sat, Jan 14, 2006 at 02:21:20AM +0100, Philippe De Muyter wrote:
> > > For an embedded mmu-less m68k target, I would like to generate code
> > > that will always run at a fixed place in memory, thus not needing to be PIC,
> > > but that would access a data+bss segment that could be anywhere in memory,
> > > thus needing accesses to the data segment via %a5 and an offset table.
> > > 
> > > 1.  Does that possibility already exist in gcc (I did not find it) ?
> > > 	-msep-data currently does PI-text + PI-data.
> > 
> > AFAICT, this doesn't exist within mainline GCC. The AmigaOS port (which
> > isn't part of the official sources) implements this scheme, either with
> > 16bit or 32bit displacements. The latter requires a 68020 or better.
> > Note, you need binutils support as well.
> 
> Where is that AmigaOS port availaible ?
> That seems to be an easier solution.

GCC diffs upto 3.4.0 are available here:

   ftp://ftp.back2roots.org/pub/geekgadgets/amiga/m68k/alpha/gcc/

There is a sourceforge project called "adtools" which is intended to have
the AmigaOS/68k GCC port. Currently those patches are not integrated yet.
However, the binutils support is available there.

   http://www.sourceforge.net/projects/adtools/

Its probably impossible to integrate anything from there into official
sources because its imposible to tell who participated in developing
these features.

Gunther


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