This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: trying to understand some BFD code


On Tue, Oct 02, 2007 at 03:31:10PM -0700, shrimpx@gmail.com wrote:
> Hi all,
> 
> I've asked a similar question before, but I'm still trying to
> understand some stuff in how BFD works, for a research project I'm
> working on. Help would be much appreciated!

BFD comes from binutils, not from GDB.  Also, roughly no one works
with a.out any more, so you're unlikely to find much help.  Sorry.

> Could someone explain why this is the case?
> 
> Is it fundamentally tied to the endianness of binary formats? If so,
> why are the *bits* inside r_type[0] reversed? To my knowledge,
> bfd_header_big_endian() indicates the byte-endianness of the format.

I would assume that it is a peculiarity of the a.out format, not
anything more general.

-- 
Daniel Jacobowitz
CodeSourcery


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