https://sourceware.org/bugzilla/show_bug.cgi?id=23699

--- Comment #1 from rhn <sowaac.rhn at porcupinefactory dot org> ---
Created attachment 11269
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11269&action=edit
Workaround checking for signedness

This is the best workaround I could come up with (based on Pinguino.cc own
workaround).

It has a flaw that by excluding the range 0x7fffffff..0xffffffff, it will break
non-sign-extended (source) targets. a better solution would let the ihex
printer know whether the original addresses were sign-extended.

The bfd_target struct could be extended, to carry some signedness about the
input bfd.

Or, the ihex target could get a backend_data structure (currently null),
copying the input backend.

Or, the ihex backend could get a special treatment somewhere inside copy_file.
It's likely to be many places, and it likely would have to indicate that it
needs such a treatment in a special way.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to