summaryrefslogtreecommitdiff
path: root/libelf/libelfP.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-09-27 07:31:33 +0000
committerRoland McGrath <roland@redhat.com>2007-09-27 07:31:33 +0000
commitc76f0b05676f6207affbfd85e75063db3b6eeccf (patch)
tree8ccc124a5908a03d34113a7dcdeb2abad7d71522 /libelf/libelfP.h
parentcb6d865011ad98a8ac2018f072f396a2268739ca (diff)
downloadelfutils-c76f0b05676f6207affbfd85e75063db3b6eeccf.tar.gz
2007-09-27 Roland McGrath <roland@redhat.com>
* alpha_retval.c: Use dwarf_attr_integrate and dwarf_hasattr_integrate. * i386_retval.c: Likewise. * ia64_retval.c: Likewise. * ppc64_retval.c: Likewise. * ppc_retval.c: Likewise. * s390_retval.c: Likewise. * sparc_retval.c: Likewise. * x86_64_retval.c: Likewise.
Diffstat (limited to 'libelf/libelfP.h')
-rw-r--r--libelf/libelfP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libelf/libelfP.h b/libelf/libelfP.h
index f06252d7..291206ca 100644
--- a/libelf/libelfP.h
+++ b/libelf/libelfP.h
@@ -574,4 +574,7 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len)
} \
} while (0)
+/* Align offset to 4 bytes as needed for note name and descriptor data. */
+#define NOTE_ALIGN(n) (((n) + 3) & -4U)
+
#endif /* libelfP.h */