bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld's pe-dll.c includes <stdint.h> - i386-unknown-netbsdelf1.5 barfs


From: John Paul Wallington
Subject: ld's pe-dll.c includes <stdint.h> - i386-unknown-netbsdelf1.5 barfs
Date: Thu, 29 Apr 2004 03:04:39 +0100

The latest revision to ld's pe-dll.c (1.68) includes the <stdint.h>
header file and changes some unsigned long's to uint32_t.

This causes compilation to fail on a bog-standard NetBSD 1.5/i386
installation (which doesn't have that header file) when configured
with --enable-targets=all.

How about partially reverting the changes in 1.68, like so:

diff -u -r1.68 pe-dll.c
--- pe-dll.c    8 Mar 2004 11:33:59 -0000       1.68
+++ pe-dll.c    29 Apr 2004 01:50:22 -0000
@@ -26,7 +26,6 @@
 #include "libiberty.h"
 #include "safe-ctype.h"
 
-#include <stdint.h>
 #include <time.h>
 
 #include "ld.h"
@@ -918,8 +917,8 @@
 {
   int s, hint;
   unsigned char *edirectory;
-  uint32_t *eaddresses;
-  uint32_t *enameptrs;
+  unsigned long *eaddresses;
+  unsigned long *enameptrs;
   unsigned short *eordinals;
   unsigned char *enamestr;
   time_t now;
@@ -930,7 +929,7 @@
 
   /* Note use of array pointer math here.  */
   edirectory = edata_d;
-  eaddresses = (uint32_t *) (edata_d + 40);
+  eaddresses = (unsigned long *) (edata_d + 40);
   enameptrs = eaddresses + export_table_size;
   eordinals = (unsigned short *) (enameptrs + count_exported_byname);
   enamestr = (char *) (eordinals + count_exported_byname);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]