binfmt: Always include arch/elf.h in include/nuttx/elf.h

since symbols defined in arch/elf.h is also used in other case, for example:
CC:  pthread/pthread_testcancel.c machine/arm/gnu_unwind_find_exidx.c:32:8: error: unknown type name '__EIT_entry'
   32 | static __EIT_entry *__exidx_start_elf;
      |        ^~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-06-25 12:59:53 +08:00 committed by Alan Carvalho de Assis
parent 3821ad514d
commit b5c48f3ed8
11 changed files with 2 additions and 13 deletions

View file

@ -23,9 +23,9 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/arch.h>
#include <arch/elf.h>
#include <nuttx/arch.h>
#include <nuttx/elf.h>
#include "sched/sched.h"
#include "arm_internal.h"

View file

@ -26,9 +26,7 @@
****************************************************************************/
#include <elf.h>
#ifdef CONFIG_ELF_COREDUMP
#include <arch/elf.h>
#endif
/****************************************************************************
* Pre-processor Definitions

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -28,7 +28,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -30,7 +30,6 @@
#include <debug.h>
#include <assert.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************

View file

@ -29,7 +29,6 @@
#include <errno.h>
#include <debug.h>
#include <arch/elf.h>
#include <nuttx/elf.h>
/****************************************************************************