On Fri, Jan 18, 2008 at 08:17:40AM +1030, Daniel O'Connor wrote:
>On Fri, 18 Jan 2008, John Baldwin wrote:
>> amd64 uses link_elf_obj.c, all the other archs use link_elf.c, hence
>> the duplication.

Then why does amd64 need link_elf.c at all?

>I guess one option would be to put #ifdef amd64 around the error message 
>in link_elf.c.

If there's a possibility that multiple ELF linkers could be required in
the future, a cleaner option might be to make link_elf_error() just cache
the error message and only report it after all possible linkers have
refused to load the file.

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

Attachment: pgpuXyOTwM5Ie.pgp
Description: PGP signature

Reply via email to