pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/binutils binutils: update to 2.37.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/945e88be5a5e
branches:  trunk
changeset: 458196:945e88be5a5e
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Sat Sep 11 15:54:39 2021 +0000

description:
binutils: update to 2.37.

This release contains numerous bug fixes, and also the following
new features:

  * The GNU Binutils sources now requires a C99 compiler and library to
    build.

  * Support for the arm-symbianelf format has been removed.

  * Support for Realm Management Extension (RME) for AArch64 has been
    added.

  * A new linker option '-z report-relative-reloc' for x86 ELF targets
    has been added to report dynamic relative relocations.

  * A new linker option '-z start-stop-gc' has been added to disable
    special treatment of __start_*/__stop_* references when
    --gc-sections.

  * A new linker options '-Bno-symbolic' has been added which will
    cancel the '-Bsymbolic' and '-Bsymbolic-functions' options.

  * The readelf tool has a new command line option which can be used to
    specify how the numeric values of symbols are reported.
    --sym-base=0|8|10|16 tells readelf to display the values in base 8,
    base 10 or base 16.  A sym base of 0 represents the default action
    of displaying values under 10000 in base 10 and values above that in
    base 16.

  * A new format has been added to the nm program.  Specifying
    '--format=just-symbols' (or just using -j) will tell the program to
    only display symbol names and nothing else.

  * A new command line option '--keep-section-symbols' has been added to
    objcopy and strip.  This stops the removal of unused section symbols
    when the file is copied.  Removing these symbols saves space, but
    sometimes they are needed by other tools.

  * The '--weaken', '--weaken-symbol' and '--weaken-symbols' options
    supported by objcopy now make undefined symbols weak on targets that
    support weak symbols.

  * Readelf and objdump can now display and use the contents of .debug_sup
    sections.

  * Readelf and objdump will now follow links to separate debug info
    files by default.  This behaviour can be stopped via the use of the
    new '-wN' or '--debug-dump=no-follow-links' options for readelf and
    the '-WN' or '--dwarf=no-follow-links' options for objdump.  Also
    the old behaviour can be restored by the use of the
    '--enable-follow-debug-links=no' configure time option.

    The semantics of the =follow-links option have also been slightly
    changed.  When enabled, the option allows for the loading of symbol
    tables and string tables from the separate files which can be used
    to enhance the information displayed when dumping other sections,
    but it does not automatically imply that information from the
    separate files should be displayed.

    If other debug section display options are also enabled (eg
    '--debug-dump=info') then the contents of matching sections in both
    the main file and the separate debuginfo file *will* be displayed.
    This is because in most cases the debug section will only be present
    in one of the files.

    If however non-debug section display options are enabled (eg
    '--sections') then the contents of matching parts of the separate
    debuginfo file will *not* be displayed.  This is because in most
    cases the user probably only wanted to load the symbol information
    from the separate debuginfo file.  In order to change this behaviour
    a new command line option --process-links can be used.  This will
    allow di0pslay options to applied to both the main file and any
    separate debuginfo files.

  * Nm has a new command line option: '--quiet'.  This suppresses "no
    symbols" diagnostic.

diffstat:

 devel/binutils/Makefile                         |   7 +++----
 devel/binutils/PLIST.common                     |   3 +--
 devel/binutils/distinfo                         |  13 ++++++-------
 devel/binutils/patches/patch-binutils_objcopy.c |  17 -----------------
 devel/binutils/patches/patch-gold_options.h     |   8 ++++----
 5 files changed, 14 insertions(+), 34 deletions(-)

diffs (112 lines):

diff -r e024cb6d8273 -r 945e88be5a5e devel/binutils/Makefile
--- a/devel/binutils/Makefile   Sat Sep 11 15:40:48 2021 +0000
+++ b/devel/binutils/Makefile   Sat Sep 11 15:54:39 2021 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.99 2021/05/24 19:49:53 wiz Exp $
+# $NetBSD: Makefile,v 1.100 2021/09/11 15:54:39 fcambus Exp $
 
-DISTNAME=      binutils-2.36.1
-PKGREVISION=   1
+DISTNAME=      binutils-2.37
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=binutils/}
 EXTRACT_SUFX=  .tar.bz2
@@ -16,7 +15,7 @@
 USE_PKGLOCALEDIR=              yes
 REPLACE_LOCALEDIR_PATTERNS+=   Make-in
 
-USE_LANGUAGES=         c c++
+USE_LANGUAGES=         c99 c++
 USE_LIBTOOL=           yes
 USE_TOOLS+=            gmake
 
diff -r e024cb6d8273 -r 945e88be5a5e devel/binutils/PLIST.common
--- a/devel/binutils/PLIST.common       Sat Sep 11 15:40:48 2021 +0000
+++ b/devel/binutils/PLIST.common       Sat Sep 11 15:54:39 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST.common,v 1.36 2021/01/29 13:10:34 jperkin Exp $
+@comment $NetBSD: PLIST.common,v 1.37 2021/09/11 15:54:39 fcambus Exp $
 ${MACHINE_GNU_PLATFORM}/bin/ar
 ${PLIST.gas}${MACHINE_GNU_PLATFORM}/bin/as
 ${PLIST.gld}${MACHINE_GNU_PLATFORM}/bin/ld
@@ -66,7 +66,6 @@
 gnu/man/man1/windres.1
 include/ansidecl.h
 include/bfd.h
-include/bfd_stdint.h
 include/bfdlink.h
 ${PLIST.ctf}include/ctf-api.h
 ${PLIST.ctf}include/ctf.h
diff -r e024cb6d8273 -r 945e88be5a5e devel/binutils/distinfo
--- a/devel/binutils/distinfo   Sat Sep 11 15:40:48 2021 +0000
+++ b/devel/binutils/distinfo   Sat Sep 11 15:54:39 2021 +0000
@@ -1,13 +1,12 @@
-$NetBSD: distinfo,v 1.41 2021/02/11 09:26:51 fcambus Exp $
+$NetBSD: distinfo,v 1.42 2021/09/11 15:54:39 fcambus Exp $
 
-SHA1 (binutils-2.36.1.tar.bz2) = 968cddc17354142ab7d60b93d7f169ec8373a9f4
-RMD160 (binutils-2.36.1.tar.bz2) = 7315baac14d63366319fd30b7892771d913194aa
-SHA512 (binutils-2.36.1.tar.bz2) = 5c40cfe05b922492627db71990dd2ba6030fd2de4bdba3f53a3f274543ff161fb56e2f6bdac107e0ffdcfd095e499c54e1157ee1865723baefa67b5b4d3da201
-Size (binutils-2.36.1.tar.bz2) = 33689928 bytes
+SHA1 (binutils-2.37.tar.bz2) = 4ea805f2e158903bfc1b07228f4ef26c0dbaf770
+RMD160 (binutils-2.37.tar.bz2) = 7d841e56e60a72723ea328fac3f15a8bf1598b98
+SHA512 (binutils-2.37.tar.bz2) = b3f5184697f77e94c95d48f6879de214eb5e17aa6ef8e96f65530d157e515b1ae2f290e98453e4ff126462520fa0f63852b6e1c8fbb397ed2e41984336bc78c6
+Size (binutils-2.37.tar.bz2) = 33888611 bytes
 SHA1 (patch-bfd_cache.c) = e2d96bad350552eacdffa83532f9dc9e15ee9be9
-SHA1 (patch-binutils_objcopy.c) = 3a9cea4cdf49e16853399f5beb5628984d9ca7a6
 SHA1 (patch-gold_Makefile.in) = e01d973f9625a1653851f796c123efec37102fbd
-SHA1 (patch-gold_options.h) = 65a4cdb67cb4bef6a1891ca66a5fc80c5493c24e
+SHA1 (patch-gold_options.h) = 03816bbf157d781820d96a4d3af0885dc2bbbaa9
 SHA1 (patch-gold_system.h) = 9b4130b5315763daa66e0a91a8be6d1df0d10344
 SHA1 (patch-gold_testsuite_Makefile.in) = 24ede750675829281436d728d77073638f58d6b9
 SHA1 (patch-include_safe-ctype.h) = 66e636f8200ff5e9b4bfa0a5aee13cd072a23887
diff -r e024cb6d8273 -r 945e88be5a5e devel/binutils/patches/patch-binutils_objcopy.c
--- a/devel/binutils/patches/patch-binutils_objcopy.c   Sat Sep 11 15:40:48 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-binutils_objcopy.c,v 1.1 2021/02/11 09:26:51 fcambus Exp $
-
-Unbreak the build on at least NetBSD.
-
-Cherry-picked from upstream commit 95b91a043aeaeb546d2fea556d84a2de1e917770.
-
---- binutils/objcopy.c.orig    2021-02-10 08:48:37.130505053 +0000
-+++ binutils/objcopy.c
-@@ -3769,7 +3767,7 @@ copy_file (const char *input_filename, c
-   /* To allow us to do "strip *" without dying on the first
-      non-object file, failures are nonfatal.  */
-   ibfd = bfd_openr (input_filename, input_target);
--  if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0)
-+  if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0)
-     {
-       bfd_nonfatal_message (input_filename, NULL, NULL, NULL);
-       status = 1;
diff -r e024cb6d8273 -r 945e88be5a5e devel/binutils/patches/patch-gold_options.h
--- a/devel/binutils/patches/patch-gold_options.h       Sat Sep 11 15:40:48 2021 +0000
+++ b/devel/binutils/patches/patch-gold_options.h       Sat Sep 11 15:54:39 2021 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-gold_options.h,v 1.5 2020/12/20 19:07:05 fcambus Exp $
+$NetBSD: patch-gold_options.h,v 1.6 2021/09/11 15:54:39 fcambus Exp $
 
  The NetBSD real-time linker do not understand DT_RUNPATH or
  DT_INIT_ARRAY.  The current gold defaults are not suitable for it.
  The last couple of DragonFly, FreeBSD, and OpenBSD releases do
  support these tags.
 
---- gold/options.h.orig        2020-07-24 09:12:20.000000000 +0000
+--- gold/options.h.orig        2021-07-08 11:37:20.000000000 +0000
 +++ gold/options.h
-@@ -772,7 +772,11 @@ class General_options
+@@ -781,7 +781,11 @@ class General_options
              N_("Output cross reference table"),
              N_("Do not output cross reference table"));
  
@@ -19,7 +19,7 @@
              N_("Use DT_INIT_ARRAY for all constructors"),
              N_("Handle constructors as directed by compiler"));
  
-@@ -834,7 +838,11 @@ class General_options
+@@ -843,7 +847,11 @@ class General_options
              N_("Do not create exception frame header"));
  
    // Alphabetized under 'e' because the option is spelled --enable-new-dtags.



Home | Main Index | Thread Index | Old Index