This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14743] -msdata=eabi does not produce r2/r13 relative access
- From: "kate at iti dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2004 15:24:56 -0000
- Subject: [Bug target/14743] -msdata=eabi does not produce r2/r13 relative access
- References: <20040326150154.14743.kate@iti.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kate at iti dot fi 2004-03-26 15:24 -------
Subject: Re: -msdata=eabi does not produce r2/r13 relative
access
pinskia at gcc dot gnu dot org wrote:
>------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-26 15:19 -------
>Did you try with -fPIC or -fpic as I think PPC eabi is non-pic by default?
>
>
>
Yes i did. The -fpic does not produce position independent data access,
only position
independent code section. All data access including acces to cons data
is still
position dependnet. For some reason compiler also says that -fpic and
-msdata=eabi are incompatible but i don't understand why.
Ty be truly position independent, allow loading to any address in non mmu
processor memory, both data and program should be position independent
and so data should be also
register relative as descripted for -msdata=eabi.
Kate
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14743