[PATCH] as: Align note section to 4 bytes

H.J. Lu hjl.tools@gmail.com
Sat Nov 25 14:17:00 GMT 2017


On Fri, Nov 24, 2017 at 3:49 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> gABI specifies that PT_NOTE alignment should be aligned to 4 bytes
> for 32-bit objects and to 8 bytes for 64-bit objects.  But on Linux,
> .note.ABI-tag and .note.gnu.build-id notes are always aligned to 4
> bytes.  We allow either 4 byte or 8 byte alignments.
>
> OK for master?
>
> H.J.
> ---
>         * readelf.c (process_notes_at): Return FALSE if alignment of
>         note section isn't 4 nor 8 bytes.

This patch is incorrect.  Here is the updated patch, which also fixes
incorrect note section alignment:

https://sourceware.org/bugzilla/show_bug.cgi?id=22492

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-as-Align-note-section-to-4-bytes.patch
Type: text/x-patch
Size: 3303 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20171125/00dd9eee/attachment.bin>


More information about the Binutils mailing list