diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-06 15:24:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-06 15:24:18 +0000 |
commit | bb5ede8152f14cc757ff4ee6f44ff3128c3ff144 (patch) | |
tree | db2726eb2b79bde890812a8227dae075f8ca2a3b /misc/pascal/libpoff/pfprivate.h | |
parent | a26dad80f4d004a4a0f6effedc803b3902389b39 (diff) | |
download | nuttx-bb5ede8152f14cc757ff4ee6f44ff3128c3ff144.tar.gz nuttx-bb5ede8152f14cc757ff4ee6f44ff3128c3ff144.tar.bz2 nuttx-bb5ede8152f14cc757ff4ee6f44ff3128c3ff144.zip |
Standardize to big-endian binary
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@637 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/pascal/libpoff/pfprivate.h')
-rw-r--r-- | misc/pascal/libpoff/pfprivate.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/pascal/libpoff/pfprivate.h b/misc/pascal/libpoff/pfprivate.h index 3bcdf89dc..ed5e239e6 100644 --- a/misc/pascal/libpoff/pfprivate.h +++ b/misc/pascal/libpoff/pfprivate.h @@ -48,6 +48,7 @@ #include "keywords.h" #include "poff.h" +#include "paslib.h" /* Endian-ness support */ /*************************************************************************** * Definitions @@ -86,6 +87,11 @@ #define HAVE_LINE_NUMBER (poffInfo->lineNumberSection.sh_size > 0) #define HAVE_DEBUG_SECTION (poffInfo->debugFuncSection.sh_size > 0) +#ifndef CONFIG_POFF_SWAPNEEDED +# define poffSwapFileHeader(p) +# define poffSwapSectionHeader(p) +#endif + /*************************************************************************** * Public Types ***************************************************************************/ @@ -169,4 +175,14 @@ typedef struct poffSymInfo_s poffSymInfo_t; * Public Function Prototypes ***************************************************************************/ +#ifdef CONFIG_POFF_SWAPNEEDED +extern void poffSwapFileHeader(poffFileHeader_t *pFileHeader); +extern void poffSwapSectionHeader(poffSectionHeader_t *pSectionHeader); +extern void poffSwapSymbolTableData(poffInfo_t *poffInfo); +extern void poffSwapRelocationData(poffInfo_t *poffInfo); +extern void poffSwapFileTableData(poffInfo_t *poffInfo); +extern void poffSwapLineNumberData(poffInfo_t *poffInfo); +extern void poffSwapDebugData(poffInfo_t *poffInfo); +#endif + #endif /* __PFPRIVATE_H */ |