pkgsrc/devel/binutils/patches/patch-bfd_cache.c
fcambus 641fb8838d binutils: update to 2.35.1.
Looks OK to kamil@

Changes in 2.35:

* Changed readelf's display of symbol names when wide mode is not enabled.
  If the name is too long it will be truncated and the last five characters
  replaced with "[...]".  The old behaviour of displaying 5 more characters but
  not indicating that truncation has happened can be restored by the use of the
  -T or --silent-truncation options.

* X86 NaCl target support is removed.

* The readelf tool now has a -L or --lint or --enable-checks option which turns
  on warning messages about possible problems with the file(s) being examined.
  These checks include things like zero-sized sections, which are allowed by
  the ELF standard but which nevertheless might be of concern if the user
  was expecting them to actually contain something.
2020-12-06 18:07:53 +00:00

18 lines
582 B
C

$NetBSD: patch-bfd_cache.c,v 1.5 2020/12/06 18:07:53 fcambus Exp $
Fix sign-compare on SunOS.
Handle 256 file descriptor limit in 32-bit SunOS environment.
--- bfd/cache.c.orig 2020-07-24 09:12:19.000000000 +0000
+++ bfd/cache.c
@@ -49,6 +49,10 @@ SUBSECTION
#include <sys/mman.h>
#endif
+#if defined(__sun) && !defined(_LP64)
+#include <limits.h>
+#endif
+
/* In some cases we can optimize cache operation when reopening files.
For instance, a flush is entirely unnecessary if the file is already
closed, so a flush would use CACHE_NO_OPEN. Similarly, a seek using