This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.1 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3026abfde1a1433b7f53b7a52a275c4cd65b7081 Author: yezhonghui <[email protected]> AuthorDate: Wed Jan 28 10:18:07 2026 +0800 elf: add macro SELFMAG to align standard used SELFMAG is the length of ELFMAG. The C library of other systems defines it in <elf.h>, and programs use it with memcmp() to check the magic number of an ELF file. Signed-off-by: yezhonghui <[email protected]> Signed-off-by: Marco Casaroli <[email protected]> --- include/elf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/elf.h b/include/elf.h index a3d6dc8f927..cfed9ef84d0 100644 --- a/include/elf.h +++ b/include/elf.h @@ -119,6 +119,7 @@ #define ELFMAG2 'L' #define ELFMAG3 'F' #define ELFMAG "\177ELF" +#define SELFMAG 4 /* Table 3. Values for EI_CLASS */
