Fix build when size_t is not available in bfd-in2.h
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 15 Jun 2015 18:20:02 +0000 (19:20 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 16 Jun 2015 12:41:30 +0000 (13:41 +0100)
bfd/ChangeLog:

2015-06-15  Jon Turney  <jon.turney@dronecode.org.uk>

* bfd.c: Change struct bfd_build_id to use bfd_size_type.
* bfd-in2.h : Regenerate.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c

index 91bdc45c0e32b0d197b2d54d906e5ebbd8fc48da..be36403d9da9084674d2d5bd76222fba5fd9f025 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-15  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * bfd.c: Change struct bfd_build_id to use bfd_size_type.
+       * bfd-in2.h : Regenerate.
+
 2015-06-16  Alan Modra  <amodra@gmail.com>
 
        * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of
index dfffe3c52666e13473da5fed8c8de0bc5a101bec..2d32c7481b77531f99378cdbcb06eb1e4d0739f9 100644 (file)
@@ -6328,7 +6328,7 @@ enum bfd_plugin_format
 
 struct bfd_build_id
   {
-    size_t size;
+    bfd_size_type size;
     bfd_byte data[1];
   };
 
index e60f3581a3a89b6935c5a5e9f6646017b1adbb8e..8d85de50b970580cc093bca7f884dd7e42ba2271 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -53,7 +53,7 @@ CODE_FRAGMENT
 .
 .struct bfd_build_id
 .  {
-.    size_t size;
+.    bfd_size_type size;
 .    bfd_byte data[1];
 .  };
 .