[PATCH,rs6000] don't define __eabi_convert or __eabi_uconvert if not _RELOCATABLE

David Edelsohn dje.gcc@gmail.com
Fri Jun 5 18:46:00 GMT 2009


On Fri, Jun 5, 2009 at 2:41 PM, Nathan Froyd<froydnj@codesourcery.com> wrote:
> EABI PowerPC includes startup routines that take care of relocting any
> necessary pointers in the .fixup section.  However, these routines are
> only called if -mreloctable was used when the assembly file in question
> was compiled.  If the file was compiled without -mrelocatable, then the
> routines are just taking up unnecessary space.
>
> The patch below eliminates the routines unless the file is compiled with
> -mrelocatable.  Tested with cross to powerpc-none-eabispe; OK to commit?

> +       * config/rs6000/eabi.asm (__eabi_convert): Don't define if
> +       _RELOCATABLE.
> +       (__eabi_uconvert): Likewise.
> +

Okay.

Thanks, David



More information about the Gcc-patches mailing list