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: %pc relative addressing of string literals/const data


Ian Lance Taylor <iant@google.com> wrote on 2010/10/05 15:47:38:
>
> Joakim Tjernlund <joakim.tjernlund@transmode.se> writes:
>
> > While doing relocation work on u-boot I often whish for strings/const data
> > to be accessible through %pc relative address rather than and ABS address
> > or through GOT. Has this feature ever been considered by gcc?
>
> The feature can only be supported on processors which are reasonably
> able to support it.  So, what target are you asking about?

In my case PowerPC but I think most arch's would want this feature.
Is there arch's where this cannot be support at all or just within
some limits? I think within limits could work for small apps
like u-boot.

         Jocke


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