This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use bits_per_byte (~OCTETS_PER_BYTE) of bfd_arch_info_type in binutils port?


Alan Modra wrote:

> besides the calls to bfd_set_section_contents, which ought to be fixed
> by the following patch.  I'm loathe to apply this patch to the
> official sources until we have a contributed port that needs it,
> because bfd_octets_per_bytes is not exactly a cheap function.  A
> proper fix would involve adding an opb_shift or somesuch to the bfd
> struct, and using that.

  I'm working on a (private) port where octets_per_byte isn't even a power of 2 :-)

  I have a couple of binutils bugfixes to feed upstream, but obviously no
testcases.  I was considering submitting a toy CPU port that we could use to
keep an eye open for these sort of problems creeping in, if there was interest.

  (Alan, you appear to have suddenly started setting Mail-Followups-To: headers;
does this mean you don't want to be Cc'd on list posts any more?)

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]