diff options
Diffstat (limited to 'libelf/libelfP.h')
| -rw-r--r-- | libelf/libelfP.h | 3 |
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 */ |
