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: elfcore_write_note


Alan Modra wrote:

> This makes elfcore_write_note agree with elfcore_read_notes regarding
> the alignment of note fields.  We don't comply with the current draft
> gabi, see http://sourceware.org/ml/binutils/2003-09/msg00300.html, and
> the pad was wrong anyway.
> 
> 	* elf.c (elfcore_write_note): Pad to 4-byte boundary.

Thanks for fixing this!  B.t.w. the 'bed' variable is now unused ...

Should we also pad the note content to 4 byte, or should we rely on the
caller to only call elfcore_write_note with a multiple of 4 as size?

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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