big endian i86
H.J. Lu
hjl.tools@gmail.com
Thu May 8 13:32:00 GMT 2008
More information about the Binutils mailing list
Thu May 8 13:32:00 GMT 2008
- Previous message (by thread): big endian i86
- Next message (by thread): [patch ld]: PR/6502
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): big endian i86
- Next message (by thread): [patch ld]: PR/6502
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list