diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 21:17:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 21:17:53 +0000 |
commit | 52fc121ac6444a506e2378225194faf5067008e4 (patch) | |
tree | 0cb19e0cbd0ca1deaeea6aba5022d4675a8b8111 /nuttx/include/nxflat.h | |
parent | e77fe99962337e339262ea579487eeb3ff50c4b4 (diff) | |
download | px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.tar.gz px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.tar.bz2 px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.zip |
Integrated mknxflat
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1905 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nxflat.h')
-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 65b2aff75..366d78b4d 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. */ |