svn commit: r211832 - head/usr.sbin
Jayachandran C.
c.jayachandran at gmail.com
Thu Aug 26 10:32:35 UTC 2010
On Thu, Aug 26, 2010 at 10:55 AM, Warner Losh <imp at freebsd.org> wrote:
> Author: imp
> Date: Thu Aug 26 05:25:51 2010
> New Revision: 211832
> URL: http://svn.freebsd.org/changeset/base/211832
>
> Log:
> Ugly kludge to paper over some kind of ld bug and/or misuse: don't
> build uathload on mips n64 either.
I think the issue here is that the default bfd architecture for mips
is 32bit (mips:3000). When the input is 'binary', the linker
generates objects of this architecture, and this object cannot be
linked to n32 or n64 executables.
The definition is in contrib/binutils/bfd/cpu-mips.c, in definition of
bfd_mips_arch. But to change this, we will need to patch the GNU
contrib code...
Another solution is to use 'objcopy -B mips:isa64' (which can set the
bfd architecture) to convert the binary to elf object instead of using
'ld'.
JC.
More information about the svn-src-all
mailing list