diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-18 21:17:53 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-18 21:17:53 +0000 |
commit | 3adecf5eb486f34dae8574e2ab2f3e3e0b5ef084 (patch) | |
tree | 0cb19e0cbd0ca1deaeea6aba5022d4675a8b8111 /nuttx/include | |
parent | d47aa421e2462934ee4804a408d598b5f8fbc603 (diff) |
Integrated mknxflat
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1905 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nxflat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/include/nxflat.h b/nuttx/include/nxflat.h index 65b2aff755..366d78b4dd 100644 --- a/nuttx/include/nxflat.h +++ b/nuttx/include/nxflat.h @@ -48,7 +48,7 @@ ****************************************************************************/ #define NXFLAT_MAX_STRING_SIZE 64 /* Largest size of string (w/zterminator) */ -#define NXFLAT_MAGIC "NxFT" /* NXFLAT magic number" +#define NXFLAT_MAGIC "NxFT" /* NXFLAT magic number */ /**************************************************************************** * Public Types @@ -141,6 +141,10 @@ struct nxflat_reloc_s uint32 r_info; /* Bit-encoded relocation info */ }; +/* Pack the type and the offset into one 32-bit value */ + +#define NXFLAT_RELOC(t,o) (((u_int32_t)((t) & 3) << 28) | ((o) & 0x1fffffff)) + /* The top three bits of the relocation info is the relocation type (see the * NXFLAT_RELOC_TYPE_* definitions below. This is an unsigned value. */ |