aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/ldlang.c2
-rw-r--r--ld/sysdep.h22
3 files changed, 8 insertions, 23 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 70060a1..fd14305 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2014-07-01 Alan Modra <amodra@gmail.com>
+
+ * sysdep.h: Don't include limits.h and sys/param.h. Don't
+ include unistd.h twice.
+ (LD_PATHMAX): Don't define.
+ * ldlang.c (lang_common): Don't use UINT_MAX.
+
2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Pitchumani Sivanupandi <pitchumani.s@atmel.com>
diff --git a/ld/ldlang.c b/ld/ldlang.c
index e7c9669..60877b8 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -5981,7 +5981,7 @@ lang_common (void)
for (power = 0; power <= 4; power++)
bfd_link_hash_traverse (link_info.hash, lang_one_common, &power);
- power = UINT_MAX;
+ power = (unsigned int) -1;
bfd_link_hash_traverse (link_info.hash, lang_one_common, &power);
}
}
diff --git a/ld/sysdep.h b/ld/sysdep.h
index c0b8445..99caf18 100644
--- a/ld/sysdep.h
+++ b/ld/sysdep.h
@@ -56,34 +56,12 @@ extern char *strrchr ();
#include <unistd.h>
#endif
-/* for PATH_MAX */
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
-/* for MAXPATHLEN */
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef PATH_MAX
-# define LD_PATHMAX PATH_MAX
-#else
-# ifdef MAXPATHLEN
-# define LD_PATHMAX MAXPATHLEN
-# else
-# define LD_PATHMAX 1024
-# endif
-#endif
-
#ifdef HAVE_REALPATH
# define REALPATH(a,b) realpath (a, b)
#else
# define REALPATH(a,b) NULL
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef USE_BINARY_FOPEN
#include "fopen-bin.h"
#else