Include bfd_stdint.h in bfd.h
authorAlan Modra <amodra@gmail.com>
Tue, 18 Dec 2018 08:33:51 +0000 (19:03 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Dec 2018 13:19:48 +0000 (23:49 +1030)
This patch adds bfd_stdint.h to bfd.h, so that BFD can use size_t
where appropriate in function parameters and return values.  I also
tidy a few other cases where headers are included twice.

bfd/
* Makefile.am (bfdinclude_HEADERS): Add bfd_stdint.h.
(BFD_H_DEPS): Add include/diagnostics.h.
(LOCAL_H_DEPS): Add bfd_stdint.h.
* bfd-in.h: Include bfd_stdint.h.
* arc-plt.h: Don't include stdint.h.
* coff-rs6000.c: Likewise.
* coff64-rs6000.c: Likewise.
* elfxx-riscv.c: Likewise.
* cache.c: Don't include bfd_stdint.h.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-wasm32.c: Likewise.
* elf64-nfp.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-x86.h: Likewise.
* wasm-module.c: Likewise, and don't include sysdep.h twice.
* elf-nacl.h: Don't include bfd.h.
* mach-o.h: Likewise.
* elfxx-aarch64.c: Include bfd.h and elf-bfd.h.
* elfxx-aarch64.h: Don't include bfd.h, elf-bfd.h or stdint.h.
* mach-o-aarch64.c: Include mach-o.h later.
* mach-o-arm.c: Likewise.
* mach-o-i386.c: Likewise.
* mach-o-x86-64.c: Likewise.
* mach-o.c: Likewise.
* sysdep.h: Don't include ansidecl.h or sys/stat.h.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
opcodes/
* arm-dis.c: Include bfd.h.
* aarch64-opc.c: Include bfd_stdint.h rather than stdint.h.
* csky-dis.c: Likewise.
* nds32-asm.c: Likewise.
* riscv-dis.c: Likewise.
* s12z-dis.c: Likewise.
* wasm32-dis.c: Likewise.

41 files changed:
bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/arc-plt.h
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/cache.c
bfd/coff-rs6000.c
bfd/coff64-rs6000.c
bfd/elf-nacl.h
bfd/elf32-arm.c
bfd/elf32-avr.c
bfd/elf32-nds32.c
bfd/elf32-rl78.c
bfd/elf32-rx.c
bfd/elf32-wasm32.c
bfd/elf64-nfp.c
bfd/elflink.c
bfd/elfnn-aarch64.c
bfd/elfnn-ia64.c
bfd/elfxx-aarch64.c
bfd/elfxx-aarch64.h
bfd/elfxx-ia64.c
bfd/elfxx-riscv.c
bfd/elfxx-x86.h
bfd/mach-o-aarch64.c
bfd/mach-o-arm.c
bfd/mach-o-i386.c
bfd/mach-o-x86-64.c
bfd/mach-o.c
bfd/mach-o.h
bfd/sysdep.h
bfd/wasm-module.c
opcodes/ChangeLog
opcodes/aarch64-opc.c
opcodes/arm-dis.c
opcodes/csky-dis.c
opcodes/nds32-asm.c
opcodes/riscv-dis.c
opcodes/s12z-dis.c
opcodes/wasm32-dis.c

index 8fcdb59648b600ce59776eff508c147bfbf829ab..348559306fb8a089f6864f29ab134238ac326039 100644 (file)
@@ -1,3 +1,40 @@
+2018-12-18  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (bfdinclude_HEADERS): Add bfd_stdint.h.
+       (BFD_H_DEPS): Add include/diagnostics.h.
+       (LOCAL_H_DEPS): Add bfd_stdint.h.
+       * bfd-in.h: Include bfd_stdint.h.
+       * arc-plt.h: Don't include stdint.h.
+       * coff-rs6000.c: Likewise.
+       * coff64-rs6000.c: Likewise.
+       * elfxx-riscv.c: Likewise.
+       * cache.c: Don't include bfd_stdint.h.
+       * elf32-arm.c: Likewise.
+       * elf32-avr.c: Likewise.
+       * elf32-nds32.c: Likewise.
+       * elf32-rl78.c: Likewise.
+       * elf32-rx.c: Likewise.
+       * elf32-wasm32.c: Likewise.
+       * elf64-nfp.c: Likewise.
+       * elflink.c: Likewise.
+       * elfnn-aarch64.c: Likewise.
+       * elfnn-ia64.c: Likewise.
+       * elfxx-ia64.c: Likewise.
+       * elfxx-x86.h: Likewise.
+       * wasm-module.c: Likewise, and don't include sysdep.h twice.
+       * elf-nacl.h: Don't include bfd.h.
+       * mach-o.h: Likewise.
+       * elfxx-aarch64.c: Include bfd.h and elf-bfd.h.
+       * elfxx-aarch64.h: Don't include bfd.h, elf-bfd.h or stdint.h.
+       * mach-o-aarch64.c: Include mach-o.h later.
+       * mach-o-arm.c: Likewise.
+       * mach-o-i386.c: Likewise.
+       * mach-o-x86-64.c: Likewise.
+       * mach-o.c: Likewise.
+       * sysdep.h: Don't include ansidecl.h or sys/stat.h.
+       * Makefile.in: Regenerate.
+       * bfd-in2.h: Regenerate.
+
 2018-12-18  Alan Modra  <amodra@gmail.com>
 
        PR 23980
index 2626ceb0a5933a1f828c96243dacbfce638be3cf..3d606282627627e125fb462b59f7282908d6c717 100644 (file)
@@ -33,7 +33,7 @@ bfdlibdir = @bfdlibdir@
 bfdincludedir = @bfdincludedir@
 bfdlib_LTLIBRARIES = libbfd.la
 bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
-                    $(INCDIR)/bfdlink.h $(INCDIR)/diagnostics.h
+                    bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
 else !INSTALL_LIBBFD
 # Empty these so that the respective installation directories will not be created.
 bfdlibdir =
@@ -873,8 +873,8 @@ pex64igen.c: peXXigen.c
        $(SED) -e s/XX/pex64/g < $(srcdir)/peXXigen.c > pex64igen.new
        mv -f pex64igen.new pex64igen.c
 
-BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
-LOCAL_H_DEPS= libbfd.h sysdep.h config.h
+BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h
+LOCAL_H_DEPS= libbfd.h sysdep.h config.h bfd_stdint.h
 $(BFD32_LIBS) \
  $(BFD64_LIBS) \
  $(ALL_MACHINES) \
index e63d63ab9eadd2333bc2ef58273673b2cf836e2b..40342442a3251f51d2caf5fc3792c83e5e7830a8 100644 (file)
@@ -248,8 +248,8 @@ am__can_run_installinfo = \
     *) (install-info --version) >/dev/null 2>&1;; \
   esac
 am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \
-       $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h \
-       $(INCDIR)/diagnostics.h
+       $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bfd_stdint.h \
+       $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
 HEADERS = $(bfdinclude_HEADERS)
 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
   distclean-recursive maintainer-clean-recursive
@@ -468,8 +468,8 @@ libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
 @INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2)
 @INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \
 @INSTALL_LIBBFD_TRUE@  $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
-@INSTALL_LIBBFD_TRUE@  $(INCDIR)/bfdlink.h \
-@INSTALL_LIBBFD_TRUE@  $(INCDIR)/diagnostics.h $(am__append_2)
+@INSTALL_LIBBFD_TRUE@  bfd_stdint.h $(INCDIR)/diagnostics.h \
+@INSTALL_LIBBFD_TRUE@  $(INCDIR)/bfdlink.h $(am__append_2)
 @INSTALL_LIBBFD_FALSE@rpath_bfdlibdir = @bfdlibdir@
 @INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
 
@@ -1146,8 +1146,8 @@ libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB)
 # everything else starts using libtool.  FIXME.
 noinst_LIBRARIES = libbfd.a
 libbfd_a_SOURCES = 
-BFD_H_DEPS = $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h
-LOCAL_H_DEPS = libbfd.h sysdep.h config.h
+BFD_H_DEPS = $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h
+LOCAL_H_DEPS = libbfd.h sysdep.h config.h bfd_stdint.h
 BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \
        bfdio.c bfdwin.c section.c archures.c reloc.c \
        syms.c bfd.c archive.c corefile.c targets.c format.c \
index 2f4ba8604b0ec3d04a00b32acc839940201dded6..994b4882e959590fbc8345d7a1bebebc35af6e5c 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef ARC_PLT_H
 #define ARC_PLT_H
 
-#include <stdint.h>
-
 /* Instructions appear in memory as a sequence of half-words (16 bit);
    individual half-words are represented on the target in target byte order.
    We use 'unsigned short' on the host to represent the PLT templates,
index 47b60bcfbff0294380367e2dd1051f856056915a..5657d93b7ef165eb9b3d8b120da1d8623e18e3fd 100644 (file)
@@ -34,6 +34,7 @@ extern "C" {
 
 #include "ansidecl.h"
 #include "symcat.h"
+#include "bfd_stdint.h"
 #include "diagnostics.h"
 #include <stdarg.h>
 #include <sys/stat.h>
index 6d92c51cb976cc85c3fbedf340a72bb4b5f435f2..ab71c350f7d61cffeb69a77c5bf0ab5402b30a34 100644 (file)
@@ -41,6 +41,7 @@ extern "C" {
 
 #include "ansidecl.h"
 #include "symcat.h"
+#include "bfd_stdint.h"
 #include "diagnostics.h"
 #include <stdarg.h>
 #include <sys/stat.h>
index faee6779f8f63c00c4a7815a6b655e787d47c8e4..17c84cccda256f3712c8e82fda191c04489df3d7 100644 (file)
@@ -44,7 +44,6 @@ SUBSECTION
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
-#include "bfd_stdint.h"
 
 #ifdef HAVE_MMAP
 #include <sys/mman.h>
index edff50daaafbb52c76e28307e9768c8fef094b43..65ae05cdcd50f35f0bdf8fa2b5ce2dff8380f817 100644 (file)
@@ -114,7 +114,6 @@ extern int rs6000coff_core_file_failing_signal (bfd *abfd);
 #define bfd_pe_print_pdata     NULL
 #endif
 
-#include <stdint.h>
 #include "coffcode.h"
 
 /* The main body of code is in coffcode.h.  */
index 928a23d4f885787145bd6cf8f2a4521388d53112..6e52347624bd0f98ed442d794277ed6470a6f128 100644 (file)
@@ -278,7 +278,6 @@ extern int rs6000coff_core_file_failing_signal
 #define bfd_pe_print_pdata     NULL
 #endif
 
-#include <stdint.h>
 #include "coffcode.h"
 
 /* For XCOFF64, the effective width of symndx changes depending on
index 8ca06183149e2bdaf9d074d19feff1ee44a3f9b6..1b691a313b3f00084f25a4393a4ee2f32443366e 100644 (file)
@@ -16,8 +16,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#include "bfd.h"
-
 bfd_boolean nacl_modify_segment_map (bfd *, struct bfd_link_info *);
 bfd_boolean nacl_modify_program_headers (bfd *, struct bfd_link_info *);
 void nacl_final_write_processing (bfd *, bfd_boolean linker);
index 5adec5e47318510e8fd1911436b3715c86c9a20c..9fda98edd858ecbd63c3e838dc64d1fe5ef452bd 100644 (file)
@@ -22,7 +22,6 @@
 #include <limits.h>
 
 #include "bfd.h"
-#include "bfd_stdint.h"
 #include "libiberty.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
index 13e28d8a1edbed3b99a8c5f2e64593add2fddf46..527149c67bc3e2585fa7f803ae6f7e0daf62858f 100644 (file)
@@ -25,7 +25,6 @@
 #include "elf-bfd.h"
 #include "elf/avr.h"
 #include "elf32-avr.h"
-#include "bfd_stdint.h"
 
 /* Enable debugging printout at stdout with this variable.  */
 static bfd_boolean debug_relax = FALSE;
index 184cf320f7c1a5af746e2a30bfc87a9235140d6e..c7e15190cd54e96c499959afcb3f8a628b735bd0 100644 (file)
 
 #include "sysdep.h"
 #include "bfd.h"
-#include "bfd_stdint.h"
 #include "bfdlink.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "libiberty.h"
-#include "bfd_stdint.h"
 #include "elf/nds32.h"
 #include "opcode/nds32.h"
 #include "elf32-nds32.h"
index e072b1a96efe7c1881b1866ecf277c5b3b21d369..3a96f41343e66bc4c8b2a02a9884547b0c55d3bc 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "sysdep.h"
 #include "bfd.h"
-#include "bfd_stdint.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/rl78.h"
index ddcf5e980fa271f7d7b5c968a26949f678a96209..68fac291b8fc7c66efa957c89587624f154b7867 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "sysdep.h"
 #include "bfd.h"
-#include "bfd_stdint.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/rx.h"
index 9fc48de6d6540290807916d7dda0eb390a8642f1..d4e54ca266cece82176bc57d7e09c84ea84d7290 100644 (file)
@@ -22,7 +22,6 @@
 #include "bfd.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
-#include "bfd_stdint.h"
 #include "libiberty.h"
 #include "elf/wasm32.h"
 
index 3cdda3d36b9308baf80510f4e51b0c1d06977e58..e043535723870adbc86d050685af77b31a78f063 100755 (executable)
@@ -24,7 +24,6 @@
 #include "libbfd.h"
 #include "elf-bfd.h"
 #include "elf/nfp.h"
-#include "bfd_stdint.h"
 
 
 static bfd_reloc_status_type
index 8992a5016f7c386cb19d0b0e443519aef81d751f..f5b411bd6285671033c71b35fa17b6c33d7168e8 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "sysdep.h"
 #include "bfd.h"
-#include "bfd_stdint.h"
 #include "bfdlink.h"
 #include "libbfd.h"
 #define ARCH_SIZE 0
index 083f90b57de38b6e1c58c991c851978ec1751717..8b5124b4c0e9d819f55e1dc7abc7e45eea6a1795 100644 (file)
 #include "bfd.h"
 #include "libiberty.h"
 #include "libbfd.h"
-#include "bfd_stdint.h"
 #include "elf-bfd.h"
 #include "bfdlink.h"
 #include "objalloc.h"
index e6551df204627b4ac1fb8497148b3c1b8d912500..56572d3d072e9953e823e00fb2d468b61eb98019 100644 (file)
@@ -27,7 +27,6 @@
 #include "elf/ia64.h"
 #include "objalloc.h"
 #include "hashtab.h"
-#include "bfd_stdint.h"
 #include "elfxx-ia64.h"
 
 #define ARCH_SIZE      NN
index b8a541a9ddac6f8361a1858523cc0f8478e9b0f4..e3b6ef6d5fdab1cbac462d470c8ac9c6a0466003 100644 (file)
@@ -19,6 +19,8 @@
    see <http://www.gnu.org/licenses/>.  */
 
 #include "sysdep.h"
+#include "bfd.h"
+#include "elf-bfd.h"
 #include "elfxx-aarch64.h"
 #include <stdarg.h>
 #include <string.h>
index 301af73e3ecf2800d0dd8a3558ad35f03867f6d7..0aa536a4bfb3b9d3685fadc82cbbaff4aaa540da 100644 (file)
    along with this program; see the file COPYING3. If not,
    see <http://www.gnu.org/licenses/>.  */
 
-#include "bfd.h"
-#include "elf-bfd.h"
-#include "stdint.h"
-
 /* Take the PAGE component of an address or offset.  */
 #define PG(x)       ((x) & ~ (bfd_vma) 0xfff)
 #define PG_OFFSET(x) ((x) &   (bfd_vma) 0xfff)
index 290dcd8e5395fd79531b27a1e2e7efcab1f3e33f..2c96f05da837bd34eb6535f121fb84356fae3e9d 100644 (file)
@@ -27,7 +27,6 @@
 #include "elf/ia64.h"
 #include "objalloc.h"
 #include "hashtab.h"
-#include "bfd_stdint.h"
 #include "elfxx-ia64.h"
 
 /* THE RULES for all the stuff the linker creates --
index a88c7fa2e7630b29a4df608f153927bc236a1436..d92b2738f3d757cc7e1240fa5289b90bcfe40f09 100644 (file)
@@ -29,7 +29,6 @@
 #include "libiberty.h"
 #include "elfxx-riscv.h"
 #include "safe-ctype.h"
-#include <stdint.h>
 
 #define MINUS_ONE ((bfd_vma)0 - 1)
 
index d153623d3e8c2b445ceee5f2691433877d0d7e37..2415987d32bcf2d6e353558d93302f33916b3d36 100644 (file)
@@ -23,7 +23,6 @@
 #include "bfdlink.h"
 #include "libbfd.h"
 #include "elf-bfd.h"
-#include "bfd_stdint.h"
 #include "hashtab.h"
 
 #define PLT_CIE_LENGTH         20
index 7013d26da1a5ecc78457cfee661356e4e31b1bd1..018ac2e12ef5efd2525360a1cd08a99ac7fa51e1 100644 (file)
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "mach-o/arm64.h"
 
 #define bfd_mach_o_object_p bfd_mach_o_arm64_object_p
index 738b2f1643e50d33ca27807746846bc572244be0..5182c97f8bc490a780c8676849f827f31ce3ba62 100644 (file)
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "mach-o/arm.h"
 
 #define bfd_mach_o_object_p bfd_mach_o_arm_object_p
index 4918e5e6da414883a3656319a8e1c07cba08d083..db92e5d10aea2ca96a76cb66aee3efe82a852daa 100644 (file)
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "mach-o/reloc.h"
 
 #define bfd_mach_o_object_p bfd_mach_o_i386_object_p
index 9ee93a4ffb970eff25478897dd8d53a5a9aed819..153a85cedad52a7b6f7042a78999783ffdc4a7fc 100644 (file)
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "mach-o/x86-64.h"
 
 #define bfd_mach_o_object_p bfd_mach_o_x86_64_object_p
index 51217158ce1d222c4e76a4ad49413d053d3e8b12..11e946c47d3dc592d100ab2e57a4db36731b1917 100644 (file)
    MA 02110-1301, USA.  */
 
 #include "sysdep.h"
-#include "mach-o.h"
 #include "bfd.h"
 #include "libbfd.h"
 #include "libiberty.h"
+#include "mach-o.h"
 #include "aout/stab_gnu.h"
 #include "mach-o/reloc.h"
 #include "mach-o/external.h"
index 61428d6a3aef7b98c164f94cf553556ab74c2933..97547a53de7fa697365e4897f0ff3927be3fcea6 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef _BFD_MACH_O_H_
 #define _BFD_MACH_O_H_
 
-#include "bfd.h"
 #include "mach-o/loader.h"
 #include "mach-o/external.h"
 
index bc7dbcf6c34242fcdeefe099c4217e874fa1fa8e..7152d77be1e6ecdd61c0d9999c0f5dcbaa1ed01b 100644 (file)
 
 #include "config.h"
 
-#include "ansidecl.h"
-
 #ifdef HAVE_STDDEF_H
 #include <stddef.h>
 #endif
 
 #include <stdio.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 
 #include <errno.h>
 #if !(defined(errno) || defined(_MSC_VER) && defined(_INC_ERRNO))
index 6806e0f81d9c3c6205949b2fe0a527dbcb91800d..3deaf42bac47b7ff5574e9c5b75efe043f5a0a63 100644 (file)
@@ -28,9 +28,7 @@
 #include "sysdep.h"
 #include "alloca-conf.h"
 #include "bfd.h"
-#include "sysdep.h"
 #include <limits.h>
-#include "bfd_stdint.h"
 #include "libiberty.h"
 #include "libbfd.h"
 #include "wasm-module.h"
index 880f863b4a4fb6c1208e3401095ea50a9ff19c09..8676f5f3b525a2fde3d898a848628f8a77db224f 100644 (file)
@@ -1,3 +1,13 @@
+2018-12-18  Alan Modra  <amodra@gmail.com>
+
+       * arm-dis.c: Include bfd.h.
+       * aarch64-opc.c: Include bfd_stdint.h rather than stdint.h.
+       * csky-dis.c: Likewise.
+       * nds32-asm.c: Likewise.
+       * riscv-dis.c: Likewise.
+       * s12z-dis.c: Likewise.
+       * wasm32-dis.c: Likewise.
+
 2018-12-07  Jim Wilson  <jimw@sifive.com>
 
        PR gas/23956
index b047d2feab25ef945996e8d8a05235badd3e9c1b..72ff4d5448da7edf36576e9acf72b0ad2fecab77 100644 (file)
@@ -22,7 +22,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <stdint.h>
+#include "bfd_stdint.h"
 #include <stdarg.h>
 #include <inttypes.h>
 
index 8e6a37b0c67533cfbf6ca2edf9cad984818f53f2..006197043d5916557dddc923c23af36848de8bb7 100644 (file)
@@ -32,6 +32,7 @@
 /* FIXME: This shouldn't be done here.  */
 #include "coff/internal.h"
 #include "libcoff.h"
+#include "bfd.h"
 #include "elf-bfd.h"
 #include "elf/internal.h"
 #include "elf/arm.h"
index 9c3495f82dc2ce699adc19dd00910e5c120ef929..f57b9da6bdba1e1ae193398586077abfc3f5039a 100644 (file)
@@ -22,7 +22,7 @@
 #include "sysdep.h"
 #include "config.h"
 #include <stdio.h>
-#include <stdint.h>
+#include "bfd_stdint.h"
 #include "disassemble.h"
 #include "elf-bfd.h"
 #include "opcode/csky.h"
index f0dd3266f95f04a9c72a815c7667a2c3a4355699..94f0af20081d6f7f6d6ebad4b382a80d1c035c8e 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "sysdep.h"
 
-#include <stdint.h>
+#include "bfd_stdint.h"
 #include <assert.h>
 
 #include "safe-ctype.h"
index f1bbfdb1f14ce09a6095b79c85088fc4d9020d8d..ab7575a22b227066219b98ebaf5f189aaaa814cc 100644 (file)
@@ -28,7 +28,7 @@
 #include "elf-bfd.h"
 #include "elf/riscv.h"
 
-#include <stdint.h>
+#include "bfd_stdint.h"
 #include <ctype.h>
 
 struct riscv_private_data
index 719f172bcc3171a6a8accbd65551f2902a79c3b0..5d9307bb77d4f60a7e14371df770585735f8eb7c 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "sysdep.h"
 #include <stdio.h>
-#include <stdint.h>
+#include "bfd_stdint.h"
 #include <stdbool.h>
 #include <assert.h>
 
index d6f1697542493f53079c44aa684bbb2505a8c9d4..9b5dea4a490d9901967675157efe234cd70fe573 100644 (file)
@@ -27,7 +27,7 @@
 #include "elf-bfd.h"
 #include "elf/internal.h"
 #include "elf/wasm32.h"
-#include <stdint.h>
+#include "bfd_stdint.h"
 
 /* Type names for blocks and signatures.  */
 #define BLOCK_TYPE_NONE              0x40