This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: big endian i86


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]