This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: m68k-pic-*


On Wed, 4 Jul 2001 18:23:12 +0200
"Clem Vasseur" <darkclem@wanadoo.fr> wrote:

> > > Do you know of a patch that would make GCC-3.0 generate PIC code
> > > with base-register relative data access for the m68k ?
> > 
> > Does -fPIC help?
> >  
> No, because (AFAIK) it doesn't produce "base-register relative" addressing
> for the .data and .bss sections.

What about :

@item -mpcrel
  Use the pc-relative addressing mode of the 68000 directly, instead of
  using a global offset table.  At present, this option implies -fpic,
  allowing at most a 16-bit offset for pc-relative addressing.  -fPIC is
  not presently supported with -mpcrel, though this could be supported for
  68020 and higher processors.

Should be implemented in gcc-3.0, but patching gcc-2.95.3 to have this
too isn't impossible...

Cheers, Kai

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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