PR16686, intptr_t type definition needed
Alan Modra
amodra@gmail.com
Tue Mar 11 05:45:00 GMT 2014
coffcode.h uses an intptr_t cast inside an #ifdef RS6000COFF_C, so
ensure that intptr_t is defined. We don't see this when
cross-compiling from linux due to intptr_t being provided by
unistd.h.
PR 16686
* coff-rs6000.c: Include stdint.h.
* coff64-rs6000.c: Likewise.
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 1f976d9..06ee721 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -114,6 +114,7 @@ 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. */
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 0e0f0d4..4bc7ea8 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -277,6 +277,7 @@ 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
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list