This is the mail archive of the
mailing list for the GCC project.
Re: mips address splitting breaks named section support
Jim Wilson writes:
> I don't believe that this is an appropriate patch. .sdata is a special
> section name. It is one of the predefined sections, and it is one that is
> accessed via the GP register. However, most sections are not accessed via
> the GP register. No user named section for instance will be accessed via the
> GP register. Hence we shouldn't be disabling address splitting for any
> variable that has a section attribute. Rather we should determine which
> predefined sections are accessed off the GP, check for those section names,
> and if it is one of them, then we set SYMBOL_REF_FLAG for that variable.