This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: patch, ldemul_choose_target, AIX -b64 support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Tom Rix <trix at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 4 Dec 2001 08:01:39 +1030
- Subject: Re: patch, ldemul_choose_target, AIX -b64 support
- References: <3C0BBF25.64208683@redhat.com>
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.