All SHT_NOTE sections should have minimum alignment 4.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Is there a documentation about this? (I understand there's little hope, but just asking.)
I can see that why we want to align it to 4 bytes. Since the section does not contain 64-bit values even on 64-bit, 32-bit should suffice.
Comment Actions
http://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section describes alignment of the contents of notes. Maintaining that alignment is obviously impossible if the section is not so aligned.
Comment Actions
Ah, thanks. It is a good surprise. So, the document says that "In 64-bit objects (files with e_ident[EI_CLASS] equal to ELFCLASS64), each entry is an array of 8-byte words in the format of the target processor." Maybe you should align it to Config->Wordsize instead of 4?