bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22444] Incorrect note padding check


From: hjl.tools at gmail dot com
Subject: [Bug binutils/22444] Incorrect note padding check
Date: Thu, 16 Nov 2017 10:57:30 +0000

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andreas Schwab from comment #6)
> But you won't get xword alignment only by aligning the sizes of the name and
> data fields, you also need to insert padding before the name field.

Since name is a string, we don't need to align name.  We only need to
pad name to align the note descriptor.  Lucky for us, "GNU" is 4 bytes.
So there are 4 words (2 xwords) before the note descriptor.  We don't
need to pad name in GNU notes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]