This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: big endian i86
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Thu, 8 May 2008 06:32:05 -0700
- Subject: Re: big endian i86
- References: <4822F8B6.40405@codesourcery.com>
On Thu, May 08, 2008 at 01:57:26PM +0100, Nathan Sidwell wrote:
> Hi,
> I have a bug report about i86-ld allowing you to create big endian i86 modules with:
> ld -EB ....
>
> The linker produces no errors, but the resultant file is marked with
> unknown architecture, and is pretty useless :) Is there a rationale for
> not issuing an error at link time? I notice elf32-i386.c lacks a
You may want to take a look at closest_target_match in ldlang.c.
It matches -EB any with big endian ELF target like elf64-big
or elf32-big. I think closest_target_match is too simple for ELF
target. We should at least check one or more of arch,
elf_machine_code, elf_size_info.
> merge_private_bfd_data hook.
>
Does it need one?
H.J.