This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Problem with linking a.out-i386 files on a solaris host
- From: "Carl Petersen" <cpetersen at vocaldata dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Wed, 5 Mar 2003 12:51:42 -0600
- Subject: RE: Problem with linking a.out-i386 files on a solaris host
That worked.
Thanks
-----Original Message-----
From: Nick Clifton [mailto:nickc at redhat dot com]
Sent: Wednesday, March 05, 2003 7:47 AM
To: Carl Petersen
Cc: binutils at sources dot redhat dot com
Subject: Re: Problem with linking a.out-i386 files on a solaris host
Hi Carl,
> I have built the most recent binutils with support for all possible
> targets.
>
> When I execute:
>
> ld -b a.out-i386 file1.o file2.o file3.o file4.o --oformat a.out-i386 -o outfile
>
> I get warnings like
>
> 'ld: warning: i386 architecture of input file `file1.o' is incompatible with sparc output'
These warnings can be suppressed with the "--no-warn-mismatch" switch,
but I guess that this is not what you really want.
> But I am not trying to generate a sparc output file. I am in fact trying to generate a
> a.out-i386 output file.
Indeed - it seems that the --oformat functionality of the linker is
severely broken. If the specified output format is not a variation of
the default output format the linker does not behave very well at
all. I would recommend, for now, that you build an a.out-i386
targeted, sparc hosted linker instead and use that to create your
'outfile' binary.
Cheers
Nick