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-*


> > > 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.
> 

This won't work.. it doesn't use a5 for accessing the .data and .bss segments.

---
Clem Vasseur <nitrogen@nrj.com>
Icarus Productions <http://icarus.ticalc.org>


------
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]