In load.c there's some GCC warnings about undefined
functions (bfd_get_elf_phdr_upper_bound and bfd_get_elf_phdrs). To
get the declarations of these functions include 'elf-bfd.h'. This
headers also pulls in other elf related headers, like 'elf/internal.h'
and 'elf/common.h', so these no longer need to be explicitly included
from load.c.
In trace.c and include for trace.h is missing, again this results in
GCC warnings for missing function declarations.
sim/rx/ChangeLog:
* load.c: Replace 'elf/internal.h' and 'elf/common.h' includes
with 'elf-bfd.h' include.
* trace.c: Add 'trace.h' include.
+2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * load.c: Replace 'elf/internal.h' and 'elf/common.h' includes
+ with 'elf-bfd.h' include.
+ * trace.c: Add 'trace.h' include.
+
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
* reg.c (trace_register_changes): Use PRIx64 in printf format
#include "cpu.h"
#include "mem.h"
#include "load.h"
-#include "elf/internal.h"
-#include "elf/common.h"
+#include "elf-bfd.h"
/* Helper function for invoking a GDB-specified printf. */
static void
#include "cpu.h"
#include "mem.h"
#include "load.h"
+#include "trace.h"
static int
sim_dis_read (bfd_vma memaddr, bfd_byte * ptr, unsigned int length,