This is the mail archive of the
mailing list for the binutils project.
Re: ld won't complain if asked to link obj files of different arches
On Wed, Dec 18, 2002 at 07:18:45PM +0000, Nick Clifton wrote:
> Hi H.J.
> > I am not sure if it is necessary. I'd like to see a real testcase
> > first. That is the linker doesn't complain and the resulting binary
> > is wrong. For all I know, the linker will complain if it can't handle
> > the input.
> Well Alex did include a simple test case in his original posting:
It doesn't say if the resulting binary is working or not.
> Besides I do not think that we can reply upon the presence of "alien"
> relocs or similar in order to trigger a warning/error message from the
> linker. If the user is linking in an unknown format binary then they
Why not, if the linker does the right thing for the given input? I
don't think ld should second guess what the input should be.
> really should know what they are doing, and it is not unreasonable to
> require that they use a command line option to confirm to the linker
> that they want the link to happen.