patch, ldemul_choose_target, AIX -b64 support

Alan Modra amodra@bigpond.net.au
Mon Dec 3 13:31:00 GMT 2001


On Mon, Dec 03, 2001 at 12:06:29PM -0600, Tom Rix wrote:
>   char *
> ! ldemul_choose_target(argc, argv)

Space before open parenthesis.

> !       int argc;
> !       char **argv;
>   {
> !   return ld_emulation->choose_target(argc, argv);

Likewise.

>   }
>   
> + 
>   /* The default choose_target function.  */
>   
>   char *
> ! ldemul_default_target(argc, argv)

Likewise.

> + static char *
> + choose_target (argc, argv)
> +      int argc;
> +      char **argv;
> + {
> +   int i, j, jmax;
> +   static char *from_outside;
> +   static char *from_inside;
> +   static char *argv_to_target[][2] = 
> +     { 
> +       NULL,   "aixcoff-rs6000",
> + #ifdef _AIX43
> +       "-b32", "aixcoff-rs6000",
> +       "-b64", "aixcoff64-rs6000",
> + #endif
> +     };
> + 
> +   jmax = 1;
> + #ifdef _AIX43
> +   jmax = 3;
> + #endif

Why the #ifdefs here?  Think cross-tools.




More information about the Binutils mailing list