This is the mail archive of the binutils@sources.redhat.com 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]

Re: Ld is broken on ia64


On Sat, Aug 18, 2001 at 12:48:37PM -0700, Richard Henderson wrote:
> On Sun, Aug 19, 2001 at 12:36:04AM +0930, Alan Modra wrote:
> > +  ptr_off = ((char *) &((lang_statement_union_type *) 0)->header.next
> > +	     - (char *) 0);
> 
> <stddef.h> defines offsetof, which does what you want here.
> 

That's what I used at first, then decided on the above since I had to
provide a definition for offsetof in case stddef wasn't available.

Hmm, I see some other random definitions for offsetof in binutils.  I
guess the right thing to do is put one in bfd/sysdep.h.  I'll do so
tomorrow.

Alan


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