This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: X Libraries/linking
On Wed, Jun 26, 2002 at 10:12:21AM +0930, Alan Modra wrote:
>
> > > incompatibilities in utilities such as objcopy due to the default
> > > target being the 32 bit one. Those reasons are why I think we need to
> >
> > objcopy should be able to deal with it just fine. If not, it is a bug.
> > Let's fix it.
>
> I'm talking about situations where one of the tools does things
> differently for the default target. See bfd/format.c
> bfd_check_format_matches
>
> /* If this is the default target, accept it, even if other
> targets might match. People who want those other targets
> have to set the GNUTARGET variable. */
> if (temp == bfd_default_vector[0])
>
I don't think that should be a problem. It won't match the 64bit ELF
target a 32bit ELF file and vice versa. My objcopy:
...
objcopy: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big elf64-alpha ecoff-littlealpha elf64-little elf64-big elf32-littlearm elf32-bigarm a.out-cris elf32-us-cris elf32-cris ieee elf32-hppa-linux elf32-hppa elf64-ia64-little elf64-ia64-big efi-app-ia64 elf32-m68k a.out-m68k-linux elf32-tradbigmips elf32-tradlittlemips elf64-tradbigmips elf64-tradlittlemips ecoff-bigmips ecoff-littlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf32-s390 elf64-s390 elf32-shbig-linux elf32-sh-linux elf32-sh64 elf32-sh64l elf64-sh64 elf64-sh64l elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big pe-i386 pei-i386 srec symbolsrec tekhex binary ihex trad-core
Report bugs to bug-binutils@gnu.org and hjl@lucon.org
I am cross building rpms from Linux/x86 to Linux/mips/mipsel.
H.J.