Hi Dan,

I think that the simplest change we could make would be to have BFD detect object files with a magic number of 0x188 and then have it issue an error message along the lines of "please decompress this file before passing it to BFD". What do you think ?

This makes sense, so I've attached a patch that does just this.

Let me know when/if you incorporate it to the cvs tree, and when the patch that you proposed makes it in.

I have now checked both your patch in and mine as well.

Cheers
  Nick

bfd/ChangeLog
2005-07-14  Daniel Marques  <[EMAIL PROTECTED]>
            Nick Clifton  <[EMAIL PROTECTED]>

        * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
        Alpha binaries and issue a helpful error message.
        (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
        symbol index to 15 to allow for binaries produced by DEC
        compilers.

include/coff/ChangeLog
2005-07-14  Daniel Marques  <[EMAIL PROTECTED]>

        * alpha.h (ALPHA_ECOFF_COMPRESSEDMAG): Define.
        * ecoff.h (ALPHA_MAGIC_COMPRESSED): Define.




_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to