m68k-pic-*
Kai Ruottu
kai.ruottu@luukku.com
Thu Jul 5 06:40:00 GMT 2001
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
More information about the crossgcc
mailing list