Move binfmt.h, nxflat.h, elf.h, and symtab.h to include/nuttx/binfmt/

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5252 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-10-24 20:19:44 +00:00
parent fd01281b68
commit b8f437ef4b
36 changed files with 69 additions and 66 deletions
+2 -2
View File
@@ -47,8 +47,8 @@
#include <debug.h>
#include <arpa/inet.h>
#include <nuttx/elf.h>
#include <nuttx/symtab.h>
#include <nuttx/binfmt/elf.h>
#include <nuttx/binfmt/symtab.h>
/****************************************************************************
* Pre-processor Definitions
+3 -5
View File
@@ -48,7 +48,7 @@
#include <errno.h>
#include <arpa/inet.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-Processor Definitions
@@ -118,16 +118,14 @@ int elf_init(FAR const char *filename, FAR struct elf_loadinfo_s *loadinfo)
/* Read the ELF header from offset 0 */
ret = elf_read(loadinfo, (char*)&loadinfo->header,
sizeof(struct elf_hdr_s), 0);
ret = elf_read(loadinfo, (char*)&loadinfo->header, sizeof(Elf32_Ehdr), 0);
if (ret < 0)
{
bdbg("Failed to read ELF header: %d\n", ret);
return ret;
}
elf_dumpbuffer("ELF header", (FAR const uint8_t*)&loadinfo->header,
sizeof(struct elf_hdr_s));
elf_dumpbuffer("ELF header", (FAR const uint8_t*)&loadinfo->header, sizeof(Elf32_Ehdr));
/* Verify the ELF header */
+1 -1
View File
@@ -48,7 +48,7 @@
#include <errno.h>
#include <arpa/inet.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-Processor Definitions
+1 -1
View File
@@ -48,7 +48,7 @@
#include <errno.h>
#include <arpa/inet.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-Processor Definitions
+1 -1
View File
@@ -42,7 +42,7 @@
#include <unistd.h>
#include <debug.h>
#include <errno.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-Processor Definitions
+1 -1
View File
@@ -43,7 +43,7 @@
#include <stdlib.h>
#include <debug.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-Processor Definitions
+2 -2
View File
@@ -43,7 +43,7 @@
#include <debug.h>
#include <errno.h>
#include <arpa/inet.h>
#include <nuttx/elf.h>
#include <nuttx/binfmt/elf.h>
/****************************************************************************
* Pre-processor Definitions
@@ -74,7 +74,7 @@
*
****************************************************************************/
int elf_verifyheader(const struct elf_hdr_s *header)
int elf_verifyheader(const Elf32_Ehdr *header)
{
if (!header)
{