[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 11:26:10 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22444
--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
I am adding:
/* Align an address upward to a boundary, expressed as a number of bytes.
E.g. align to an 8-byte boundary with argument of 8. */
#define ELF_ALIGN_UP(addr, boundary) \
(((bfd_vma) (addr) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary) -1))
/* Compute the offset of the note descriptor from size of note entry's
owner string and note alignment. */
#define ELF_NOTE_DESC_OFFSET(namesz, align) \
ELF_ALIGN_UP (offsetof (Elf_External_Note, name) + (namesz), (align))
/* Compute the offset of the next note entry from size of note entry's
owner string, size of the note descriptor and note alignment. */
#define ELF_NOTE_NEXT_OFFSET(namesz, descsz, align) \
ELF_ALIGN_UP (ELF_NOTE_DESC_OFFSET ((namesz), (align)) + (descsz), \
(align))
to binutils. I will also add something similar to glibc.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22444] New: Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, fweimer at redhat dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, fweimer at redhat dot com, 2017/11/15
- [Bug binutils/22444] Incorrect note padding check, address@hidden, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, address@hidden, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check,
hjl.tools at gmail dot com <=
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/16
- [Bug binutils/22444] Incorrect note padding check, hjl.tools at gmail dot com, 2017/11/24
- [Bug binutils/22444] Incorrect note padding check, cvs-commit at gcc dot gnu.org, 2017/11/24