PATCH BFD octets per byte support

Timothy Wall twall@tiac.net
Thu Jan 13 11:39:00 GMT 2000
 This patch adds support to BFD for targets on which a byte is not an
8-bit quantity.

* archures.c: add new functions to determine a target's byte size.
* bfd-in2.h: regenerated
* coffgen.c: indicate that the offset parameter is in bytes, not octets
* cofflink.c: use bfd_octets_per_byte where appropriate to get the octet
offset when calling bfd_set_section_contents.
* linker.c: ditto
* reloc.c (bfd_perform_relocation, bfd_install_relocation) distinguish
between octets and bytes.  Use octets when indexing into octet data; use
bytes when calculating target addresses.
* section.c: Distinguish between octets and bytes for usage of
_cooked_size,  _raw_size, and output_offset.  Clarify description of
bfd_set_section_contents.
* srec.c (srec_write_section): distinguish between octets and bytes.
Target addresses are in bytes, offsets into octet data are in octets.




More information about the Binutils mailing list