diff -Nru libiberty-20201110/config/ChangeLog libiberty-20210106/config/ChangeLog --- libiberty-20201110/config/ChangeLog 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/config/ChangeLog 2021-01-04 12:43:11.000000000 +0000 @@ -1,3 +1,7 @@ +2021-01-01 Nicolas Boulenguez + + * override.m4: Correct comment grammar. + 2020-09-08 Alan Modra Sync from gcc diff -Nru libiberty-20201110/config/override.m4 libiberty-20210106/config/override.m4 --- libiberty-20201110/config/override.m4 2018-06-22 06:40:58.000000000 +0000 +++ libiberty-20210106/config/override.m4 2021-01-04 12:43:11.000000000 +0000 @@ -32,7 +32,7 @@ [m4_define([_GCC_AUTOCONF_VERSION], [2.69])]) dnl Test for the exact version when AC_INIT is expanded. -dnl This allows to update the tree in steps (for testing) +dnl This allows one to update the tree in steps (for testing) dnl by putting dnl m4_define([_GCC_AUTOCONF_VERSION], [X.Y]) dnl in configure.ac before AC_INIT, diff -Nru libiberty-20201110/config.guess libiberty-20210106/config.guess --- libiberty-20201110/config.guess 2020-01-18 15:07:01.000000000 +0000 +++ libiberty-20210106/config.guess 2021-01-06 10:26:58.000000000 +0000 @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2020 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2020-01-01' +timestamp='2021-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -27,12 +27,12 @@ # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] @@ -50,7 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2020 Free Software Foundation, Inc. +Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -103,7 +103,7 @@ test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039 - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=$( (umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null) && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } @@ -131,16 +131,14 @@ PATH=$PATH:/.attbin ; export PATH fi -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +UNAME_MACHINE=$( (uname -m) 2>/dev/null) || UNAME_MACHINE=unknown +UNAME_RELEASE=$( (uname -r) 2>/dev/null) || UNAME_RELEASE=unknown +UNAME_SYSTEM=$( (uname -s) 2>/dev/null) || UNAME_SYSTEM=unknown +UNAME_VERSION=$( (uname -v) 2>/dev/null) || UNAME_VERSION=unknown case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu + LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" @@ -149,17 +147,29 @@ LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc - #else + #elif defined(__GLIBC__) LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')" - # If ldd exists, use it to detect musl libc. - if command -v ldd >/dev/null && \ - ldd --version 2>&1 | grep -q ^musl - then - LIBC=musl + # Second heuristic to detect musl libc. + if [ "$LIBC" = unknown ] && + command -v ldd >/dev/null && + ldd --version 2>&1 | grep -q ^musl; then + LIBC=musl + fi + + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + if [ "$LIBC" = unknown ]; then + LIBC=gnu fi ;; esac @@ -179,19 +189,20 @@ # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \ "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ - echo unknown)` + echo unknown)) case "$UNAME_MACHINE_ARCH" in + aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + arch=$(echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,') + endian=$(echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p') machine="${arch}${endian}"-unknown ;; *) machine="$UNAME_MACHINE_ARCH"-unknown ;; @@ -222,7 +233,7 @@ case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr") ;; esac # The OS release @@ -235,7 +246,7 @@ release='-gnu' ;; *) - release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2) ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: @@ -244,15 +255,15 @@ echo "$machine-${os}${release}${abi-}" exit ;; *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//') echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//') echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//') echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) @@ -288,17 +299,17 @@ alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}') ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $4}') ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + ALPHA_CPU_TYPE=$(/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1) case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE=alpha ;; @@ -336,7 +347,7 @@ # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" + echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 @@ -370,7 +381,7 @@ exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then + if test "$( (/bin/universe) 2>/dev/null)" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd @@ -383,17 +394,17 @@ echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in + case $(/usr/bin/uname -p) in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux"$UNAME_RELEASE" @@ -404,7 +415,7 @@ # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null @@ -412,30 +423,30 @@ SUN_ARCH=x86_64 fi fi - echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in + case "$(/usr/bin/arch -k)" in Series*|S4*) - UNAME_RELEASE=`uname -v` + UNAME_RELEASE=$(uname -v) ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" + echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')" exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=$( (sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null) test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 - case "`/bin/arch`" in + case "$(/bin/arch)" in sun3) echo m68k-sun-sunos"$UNAME_RELEASE" ;; @@ -515,8 +526,8 @@ } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && - dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`"$dummy" "$dummyarg"` && + dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') && + SYSTEM_NAME=$("$dummy" "$dummyarg") && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos"$UNAME_RELEASE" exit ;; @@ -543,11 +554,11 @@ exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] + UNAME_PROCESSOR=$(/usr/bin/uname -p) + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then - if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ - [ "$TARGET_BINARY_INTERFACE"x = x ] + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x then echo m88k-dg-dgux"$UNAME_RELEASE" else @@ -571,17 +582,17 @@ echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" + echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + exit ;; # Note that: echo "'$(uname -s)'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` + if test -x /usr/bin/oslevel ; then + IBM_REV=$(/usr/bin/oslevel) else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi @@ -601,7 +612,7 @@ exit(0); } EOF - if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") then echo "$SYSTEM_NAME" else @@ -614,15 +625,15 @@ fi exit ;; *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + IBM_CPU_ID=$(/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }') if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi - if [ -x /usr/bin/lslpp ] ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | - awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + if test -x /usr/bin/lslpp ; then + IBM_REV=$(/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/) else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi @@ -650,14 +661,14 @@ echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//') case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + if test -x /usr/bin/getconf; then + sc_cpu_version=$(/usr/bin/getconf SC_CPU_VERSION 2>/dev/null) + sc_kernel_bits=$(/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null) case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 @@ -669,7 +680,7 @@ esac ;; esac fi - if [ "$HP_ARCH" = "" ]; then + if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" @@ -704,11 +715,11 @@ exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy") test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ "$HP_ARCH" = hppa2.0w ] + if test "$HP_ARCH" = hppa2.0w then set_cc_for_build @@ -732,7 +743,7 @@ echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//') echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) @@ -762,7 +773,7 @@ exit (0); } EOF - $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; @@ -782,7 +793,7 @@ echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then + if test -x /usr/sbin/sysversion ; then echo "$UNAME_MACHINE"-unknown-osf1mk else echo "$UNAME_MACHINE"-unknown-osf1 @@ -831,14 +842,14 @@ echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` + FUJITSU_PROC=$(uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz) + FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///') + FUJITSU_REL=$(echo "$UNAME_RELEASE" | sed -e 's/ /_/') echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///') + FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/') echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) @@ -851,25 +862,25 @@ echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; arm:FreeBSD:*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi else - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf fi exit ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=$(/usr/bin/uname -p) case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; i*:CYGWIN*:*) echo "$UNAME_MACHINE"-pc-cygwin @@ -905,15 +916,15 @@ echo x86_64-pc-cygwin exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; *:GNU:*:*) # the GNU system - echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" + echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" + echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC" exit ;; *:Minix:*:*) echo "$UNAME_MACHINE"-unknown-minix @@ -926,7 +937,7 @@ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in + case $(sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null) in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; @@ -985,6 +996,9 @@ k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; @@ -1035,7 +1049,7 @@ #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) @@ -1055,7 +1069,7 @@ exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; @@ -1073,7 +1087,7 @@ ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) @@ -1095,7 +1109,17 @@ echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + set_cc_for_build + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_X32 >/dev/null + then + LIBCABI="$LIBC"x32 + fi + fi + echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" exit ;; xtensa*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" @@ -1135,7 +1159,7 @@ echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) - UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` + UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//') if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else @@ -1144,7 +1168,7 @@ exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in + case $(/bin/uname -X | grep "^Machine") in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; @@ -1153,10 +1177,10 @@ exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + UNAME_REL=$( (/bin/uname -X|grep Release|sed -e 's/.*= //')) (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 @@ -1206,7 +1230,7 @@ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ @@ -1217,7 +1241,7 @@ NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ @@ -1250,7 +1274,7 @@ exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv @@ -1284,7 +1308,7 @@ echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then + if test -d /usr/nec; then echo mips-nec-sysv"$UNAME_RELEASE" else echo mips-unknown-sysv"$UNAME_RELEASE" @@ -1332,8 +1356,11 @@ *:Rhapsody:*:*) echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; + arm64:Darwin:*:*) + echo aarch64-apple-darwin"$UNAME_RELEASE" + exit ;; *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac @@ -1346,7 +1373,7 @@ else set_cc_for_build fi - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null @@ -1370,7 +1397,7 @@ echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc @@ -1438,10 +1465,10 @@ echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; @@ -1451,7 +1478,7 @@ echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" + echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')" exit ;; i*86:rdos:*:*) echo "$UNAME_MACHINE"-pc-rdos @@ -1509,7 +1536,7 @@ #define __ARCHITECTURE__ "m68k" #endif int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + version=$( (hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null); if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else @@ -1601,7 +1628,7 @@ } EOF -$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && +$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=$($dummy) && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. @@ -1626,9 +1653,15 @@ operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess + https://git.savannah.gnu.org/cgit/config.git/plain/config.guess and - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + https://git.savannah.gnu.org/cgit/config.git/plain/config.sub +EOF + +year=$(echo $timestamp | sed 's,-.*,,') +# shellcheck disable=SC2003 +if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then + cat >&2 </dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` +uname -m = $( (uname -m) 2>/dev/null || echo unknown) +uname -r = $( (uname -r) 2>/dev/null || echo unknown) +uname -s = $( (uname -s) 2>/dev/null || echo unknown) +uname -v = $( (uname -v) 2>/dev/null || echo unknown) + +/usr/bin/uname -p = $( (/usr/bin/uname -p) 2>/dev/null) +/bin/uname -X = $( (/bin/uname -X) 2>/dev/null) + +hostinfo = $( (hostinfo) 2>/dev/null) +/bin/universe = $( (/bin/universe) 2>/dev/null) +/usr/bin/arch -k = $( (/usr/bin/arch -k) 2>/dev/null) +/bin/arch = $( (/bin/arch) 2>/dev/null) +/usr/bin/oslevel = $( (/usr/bin/oslevel) 2>/dev/null) +/usr/convex/getsysinfo = $( (/usr/convex/getsysinfo) 2>/dev/null) UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF +fi exit 1 diff -Nru libiberty-20201110/config.sub libiberty-20210106/config.sub --- libiberty-20201110/config.sub 2020-01-18 15:07:01.000000000 +0000 +++ libiberty-20210106/config.sub 2021-01-06 10:26:58.000000000 +0000 @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2020 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2020-01-01' +timestamp='2021-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -33,7 +33,7 @@ # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub +# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases @@ -50,7 +50,7 @@ # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS @@ -67,7 +67,7 @@ version="\ GNU config.sub ($timestamp) -Copyright 1992-2020 Free Software Foundation, Inc. +Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -124,28 +124,27 @@ ;; *-*-*-*) basic_machine=$field1-$field2 - os=$field3-$field4 + basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ - | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ + nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 - os=$maybe_os + basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown - os=linux-android + basic_os=linux-android ;; *) basic_machine=$field1-$field2 - os=$field3 + basic_os=$field3 ;; esac ;; @@ -154,7 +153,7 @@ case $field1-$field2 in decstation-3100) basic_machine=mips-dec - os= + basic_os= ;; *-*) # Second component is usually, but not always the OS @@ -162,7 +161,7 @@ # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 - os=$field2 + basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ @@ -175,11 +174,11 @@ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 - os= + basic_os= ;; *) basic_machine=$field1 - os=$field2 + basic_os=$field2 ;; esac ;; @@ -191,447 +190,451 @@ case $field1 in 386bsd) basic_machine=i386-pc - os=bsd + basic_os=bsd ;; a29khif) basic_machine=a29k-amd - os=udi + basic_os=udi ;; adobe68k) basic_machine=m68010-adobe - os=scout + basic_os=scout ;; alliant) basic_machine=fx80-alliant - os= + basic_os= ;; altos | altos3068) basic_machine=m68k-altos - os= + basic_os= ;; am29k) basic_machine=a29k-none - os=bsd + basic_os=bsd ;; amdahl) basic_machine=580-amdahl - os=sysv + basic_os=sysv ;; amiga) basic_machine=m68k-unknown - os= + basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown - os=amigaos + basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown - os=sysv4 + basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo - os=sysv + basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo - os=bsd + basic_os=bsd ;; aros) basic_machine=i386-pc - os=aros + basic_os=aros ;; aux) basic_machine=m68k-apple - os=aux + basic_os=aux ;; balance) basic_machine=ns32k-sequent - os=dynix + basic_os=dynix ;; blackfin) basic_machine=bfin-unknown - os=linux + basic_os=linux ;; cegcc) basic_machine=arm-unknown - os=cegcc + basic_os=cegcc ;; convex-c1) basic_machine=c1-convex - os=bsd + basic_os=bsd ;; convex-c2) basic_machine=c2-convex - os=bsd + basic_os=bsd ;; convex-c32) basic_machine=c32-convex - os=bsd + basic_os=bsd ;; convex-c34) basic_machine=c34-convex - os=bsd + basic_os=bsd ;; convex-c38) basic_machine=c38-convex - os=bsd + basic_os=bsd ;; cray) basic_machine=j90-cray - os=unicos + basic_os=unicos ;; crds | unos) basic_machine=m68k-crds - os= + basic_os= ;; da30) basic_machine=m68k-da30 - os= + basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec - os= + basic_os= ;; delta88) basic_machine=m88k-motorola - os=sysv3 + basic_os=sysv3 ;; dicos) basic_machine=i686-pc - os=dicos + basic_os=dicos ;; djgpp) basic_machine=i586-pc - os=msdosdjgpp + basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd - os=ebmon + basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson - os=ose + basic_os=ose ;; gmicro) basic_machine=tron-gmicro - os=sysv + basic_os=sysv ;; go32) basic_machine=i386-pc - os=go32 + basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi - os=hms + basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi - os=xray + basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi - os=hms + basic_os=hms ;; harris) basic_machine=m88k-harris - os=sysv3 + basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp - os=hpux + basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp - os=bsd + basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp - os=osf + basic_os=osf ;; hppro) basic_machine=hppa1.1-hp - os=proelf + basic_os=proelf ;; i386mach) basic_machine=i386-mach - os=mach + basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi - os=sysv + basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown - os=linux + basic_os=linux ;; magnum | m3230) basic_machine=mips-mips - os=sysv + basic_os=sysv ;; merlin) basic_machine=ns32k-utek - os=sysv + basic_os=sysv ;; mingw64) basic_machine=x86_64-pc - os=mingw64 + basic_os=mingw64 ;; mingw32) basic_machine=i686-pc - os=mingw32 + basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown - os=mingw32ce + basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k - os=coff + basic_os=coff ;; morphos) basic_machine=powerpc-unknown - os=morphos + basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown - os=moxiebox + basic_os=moxiebox ;; msdos) basic_machine=i386-pc - os=msdos + basic_os=msdos ;; msys) basic_machine=i686-pc - os=msys + basic_os=msys ;; mvs) basic_machine=i370-ibm - os=mvs + basic_os=mvs ;; nacl) basic_machine=le32-unknown - os=nacl + basic_os=nacl ;; ncr3000) basic_machine=i486-ncr - os=sysv4 + basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc - os=netbsd + basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel - os=linux + basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony - os=newsos + basic_os=newsos ;; news1000) basic_machine=m68030-sony - os=newsos + basic_os=newsos ;; necv70) basic_machine=v70-nec - os=sysv + basic_os=sysv ;; nh3000) basic_machine=m68k-harris - os=cxux + basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris - os=cxux + basic_os=cxux ;; nindy960) basic_machine=i960-intel - os=nindy + basic_os=nindy ;; mon960) basic_machine=i960-intel - os=mon960 + basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq - os=nonstopux + basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm - os=os400 + basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson - os=ose + basic_os=ose ;; os68k) basic_machine=m68k-none - os=os68k + basic_os=os68k ;; paragon) basic_machine=i860-intel - os=osf + basic_os=osf ;; parisc) basic_machine=hppa-unknown - os=linux + basic_os=linux + ;; + psp) + basic_machine=mipsallegrexel-sony + basic_os=psp ;; pw32) basic_machine=i586-unknown - os=pw32 + basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc - os=rdos + basic_os=rdos ;; rdos32) basic_machine=i386-pc - os=rdos + basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k - os=coff + basic_os=coff ;; sa29200) basic_machine=a29k-amd - os=udi + basic_os=udi ;; sei) basic_machine=mips-sei - os=seiux + basic_os=seiux ;; sequent) basic_machine=i386-sequent - os= + basic_os= ;; sps7) basic_machine=m68k-bull - os=sysv2 + basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem - os= + basic_os= ;; stratus) basic_machine=i860-stratus - os=sysv4 + basic_os=sysv4 ;; sun2) basic_machine=m68000-sun - os= + basic_os= ;; sun2os3) basic_machine=m68000-sun - os=sunos3 + basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun - os=sunos4 + basic_os=sunos4 ;; sun3) basic_machine=m68k-sun - os= + basic_os= ;; sun3os3) basic_machine=m68k-sun - os=sunos3 + basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun - os=sunos4 + basic_os=sunos4 ;; sun4) basic_machine=sparc-sun - os= + basic_os= ;; sun4os3) basic_machine=sparc-sun - os=sunos3 + basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun - os=sunos4 + basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun - os=solaris2 + basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun - os= + basic_os= ;; sv1) basic_machine=sv1-cray - os=unicos + basic_os=unicos ;; symmetry) basic_machine=i386-sequent - os=dynix + basic_os=dynix ;; t3e) basic_machine=alphaev5-cray - os=unicos + basic_os=unicos ;; t90) basic_machine=t90-cray - os=unicos + basic_os=unicos ;; toad1) basic_machine=pdp10-xkl - os=tops20 + basic_os=tops20 ;; tpf) basic_machine=s390x-ibm - os=tpf + basic_os=tpf ;; udi29k) basic_machine=a29k-amd - os=udi + basic_os=udi ;; ultra3) basic_machine=a29k-nyu - os=sym1 + basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec - os=none + basic_os=none ;; vaxv) basic_machine=vax-dec - os=sysv + basic_os=sysv ;; vms) basic_machine=vax-dec - os=vms + basic_os=vms ;; vsta) basic_machine=i386-pc - os=vsta + basic_os=vsta ;; vxworks960) basic_machine=i960-wrs - os=vxworks + basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs - os=vxworks + basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs - os=vxworks + basic_os=vxworks ;; xbox) basic_machine=i686-pc - os=mingw32 + basic_os=mingw32 ;; ymp) basic_machine=ymp-cray - os=unicos + basic_os=unicos ;; *) basic_machine=$1 - os= + basic_os= ;; esac ;; @@ -683,17 +686,17 @@ bluegene*) cpu=powerpc vendor=ibm - os=cnk + basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec - os=tops10 + basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec - os=tops20 + basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) @@ -703,7 +706,7 @@ dpx2*) cpu=m68k vendor=bull - os=sysv3 + basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k @@ -712,7 +715,7 @@ elxsi) cpu=elxsi vendor=elxsi - os=${os:-bsd} + basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 @@ -725,7 +728,7 @@ h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi - os=hiuxwe2 + basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 @@ -766,38 +769,38 @@ vendor=hp ;; i*86v32) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv32 + basic_os=sysv32 ;; i*86v4*) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv4 + basic_os=sysv4 ;; i*86v) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv + basic_os=sysv ;; i*86sol2) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=solaris2 + basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray - os=${os:-unicos} + basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi - case $os in + case $basic_os in irix*) ;; *) - os=irix4 + basic_os=irix4 ;; esac ;; @@ -808,26 +811,26 @@ *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari - os=mint + basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony - os=newsos + basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next - case $os in + case $basic_os in openstep*) ;; nextstep*) ;; ns2*) - os=nextstep2 + basic_os=nextstep2 ;; *) - os=nextstep3 + basic_os=nextstep3 ;; esac ;; @@ -838,12 +841,12 @@ op50n-* | op60c-*) cpu=hppa1.1 vendor=oki - os=proelf + basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi - os=hiuxwe2 + basic_os=hiuxwe2 ;; pbd) cpu=sparc @@ -880,12 +883,12 @@ sde) cpu=mipsisa32 vendor=sde - os=${os:-elf} + basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs - os=vxworks + basic_os=vxworks ;; tower | tower-32) cpu=m68k @@ -902,7 +905,7 @@ w89k-*) cpu=hppa1.1 vendor=winbond - os=proelf + basic_os=proelf ;; none) cpu=none @@ -914,7 +917,7 @@ ;; leon-*|leon[3-9]-*) cpu=sparc - vendor=`echo "$basic_machine" | sed 's/-.*//'` + vendor=$(echo "$basic_machine" | sed 's/-.*//') ;; *-*) @@ -955,11 +958,11 @@ # some cases the only manufacturer, in others, it is the most popular. craynv-unknown) vendor=cray - os=${os:-unicosmp} + basic_os=${basic_os:-unicosmp} ;; c90-unknown | c90-cray) vendor=cray - os=${os:-unicos} + basic_os=${Basic_os:-unicos} ;; fx80-unknown) vendor=alliant @@ -1003,7 +1006,7 @@ dpx20-unknown | dpx20-bull) cpu=rs6000 vendor=bull - os=${os:-bosx} + basic_os=${basic_os:-bosx} ;; # Here we normalize CPU types irrespective of the vendor @@ -1012,7 +1015,7 @@ ;; blackfin-*) cpu=bfin - os=linux + basic_os=linux ;; c54x-*) cpu=tic54x @@ -1025,7 +1028,7 @@ ;; e500v[12]-*) cpu=powerpc - os=$os"spe" + basic_os=${basic_os}"spe" ;; mips3*-*) cpu=mips64 @@ -1035,7 +1038,7 @@ ;; m68knommu-*) cpu=m68k - os=linux + basic_os=linux ;; m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) cpu=s12z @@ -1045,7 +1048,7 @@ ;; parisc-*) cpu=hppa - os=linux + basic_os=linux ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 @@ -1081,7 +1084,7 @@ cpu=mipsisa64sb1el ;; sh5e[lb]-*) - cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` + cpu=$(echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/') ;; spur-*) cpu=spur @@ -1099,13 +1102,16 @@ cpu=x86_64 ;; xscale-* | xscalee[bl]-*) - cpu=`echo "$cpu" | sed 's/^xscale/arm/'` + cpu=$(echo "$cpu" | sed 's/^xscale/arm/') + ;; + arm64-*) + cpu=aarch64 ;; # Recognize the canonical CPU Types that limit and/or modify the # company names they are paired with. cr16-*) - os=${os:-elf} + basic_os=${basic_os:-elf} ;; crisv32-* | etraxfs*-*) cpu=crisv32 @@ -1116,7 +1122,7 @@ vendor=axis ;; crx-*) - os=${os:-elf} + basic_os=${basic_os:-elf} ;; neo-tandem) cpu=neo @@ -1138,16 +1144,12 @@ cpu=nsx vendor=tandem ;; - s390-*) - cpu=s390 - vendor=ibm - ;; - s390x-*) - cpu=s390x - vendor=ibm + mipsallegrexel-sony) + cpu=mipsallegrexel + vendor=sony ;; tile*-*) - os=${os:-linux-gnu} + basic_os=${basic_os:-linux-gnu} ;; *) @@ -1164,7 +1166,7 @@ | am33_2.0 \ | amdgcn \ | arc | arceb \ - | arm | arm[lb]e | arme[lb] | armv* \ + | arm | arm[lb]e | arme[lb] | armv* \ | avr | avr32 \ | asmjs \ | ba \ @@ -1183,6 +1185,7 @@ | k1om \ | le32 | le64 \ | lm32 \ + | loongarch32 | loongarch64 | loongarchx32 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ @@ -1227,8 +1230,9 @@ | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | pru \ | pyramid \ - | riscv | riscv32 | riscv64 \ + | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | rl78 | romp | rs6000 | rx \ + | s390 | s390x \ | score \ | sh | shl \ | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ @@ -1238,6 +1242,7 @@ | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | spu \ | tahoe \ + | thumbv7* \ | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | tron \ | ubicom32 \ @@ -1275,8 +1280,47 @@ # Decode manufacturer-specific aliases for certain operating systems. -if [ x$os != x ] +if test x$basic_os != x then + +# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just +# set os. +case $basic_os in + gnu/linux*) + kernel=linux + os=$(echo $basic_os | sed -e 's|gnu/linux|gnu|') + ;; + os2-emx) + kernel=os2 + os=$(echo $basic_os | sed -e 's|os2-emx|emx|') + ;; + nto-qnx*) + kernel=nto + os=$(echo $basic_os | sed -e 's|nto-qnx|qnx|') + ;; + *-*) + # shellcheck disable=SC2162 + IFS="-" read kernel os <&2 - exit 1 + # No normalization, but not necessarily accepted, that comes below. ;; esac + else # Here we handle the default operating systems that come with various machines. @@ -1528,6 +1499,7 @@ # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. +kernel= case $cpu-$vendor in score-*) os=elf @@ -1539,7 +1511,8 @@ os=riscix1.2 ;; arm*-rebel) - os=linux + kernel=linux + os=gnu ;; arm*-semi) os=aout @@ -1705,84 +1678,173 @@ os=none ;; esac + fi +# Now, validate our (potentially fixed-up) OS. +case $os in + # Sometimes we do "kernel-abi", so those need to count as OSes. + musl* | newlib* | uclibc*) + ;; + # Likewise for "kernel-libc" + eabi | eabihf | gnueabi | gnueabihf) + ;; + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ + | hiux* | abug | nacl* | netware* | windows* \ + | os9* | macos* | osx* | ios* \ + | mpw* | magic* | mmixware* | mon960* | lnews* \ + | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ + | aos* | aros* | cloudabi* | sortix* | twizzler* \ + | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ + | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ + | mirbsd* | netbsd* | dicos* | openedition* | ose* \ + | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ + | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ + | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ + | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | udi* | lites* | ieee* | go32* | aux* | hcos* \ + | chorusrdb* | cegcc* | glidix* \ + | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | midipix* | mingw32* | mingw64* | mint* \ + | uxpv* | beos* | mpeix* | udk* | moxiebox* \ + | interix* | uwin* | mks* | rhapsody* | darwin* \ + | openstep* | oskit* | conix* | pw32* | nonstopux* \ + | storm-chaos* | tops10* | tenex* | tops20* | its* \ + | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ + | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ + | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ + | skyos* | haiku* | rdos* | toppers* | drops* | es* \ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + ;; + none) + ;; + *) + echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + exit 1 + ;; +esac + +# As a final step for OS-related things, validate the OS-kernel combination +# (given a valid OS), if there is a kernel. +case $kernel-$os in + linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* ) + ;; + uclinux-uclibc* ) + ;; + -dietlibc* | -newlib* | -musl* | -uclibc* ) + # These are just libc implementations, not actual OSes, and thus + # require a kernel. + echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + exit 1 + ;; + kfreebsd*-gnu* | kopensolaris*-gnu*) + ;; + nto-qnx*) + ;; + os2-emx) + ;; + *-eabi* | *-gnueabi*) + ;; + -*) + # Blank kernel with real OS is always fine. + ;; + *-*) + echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + exit 1 + ;; +esac + # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) - case $os in - riscix*) + case $cpu-$os in + *-riscix*) vendor=acorn ;; - sunos*) + *-sunos*) vendor=sun ;; - cnk*|-aix*) + *-cnk* | *-aix*) vendor=ibm ;; - beos*) + *-beos*) vendor=be ;; - hpux*) + *-hpux*) vendor=hp ;; - mpeix*) + *-mpeix*) vendor=hp ;; - hiux*) + *-hiux*) vendor=hitachi ;; - unos*) + *-unos*) vendor=crds ;; - dgux*) + *-dgux*) vendor=dg ;; - luna*) + *-luna*) vendor=omron ;; - genix*) + *-genix*) vendor=ns ;; - clix*) + *-clix*) vendor=intergraph ;; - mvs* | opened*) + *-mvs* | *-opened*) + vendor=ibm + ;; + *-os400*) vendor=ibm ;; - os400*) + s390-* | s390x-*) vendor=ibm ;; - ptx*) + *-ptx*) vendor=sequent ;; - tpf*) + *-tpf*) vendor=ibm ;; - vxsim* | vxworks* | windiss*) + *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; - aux*) + *-aux*) vendor=apple ;; - hms*) + *-hms*) vendor=hitachi ;; - mpw* | macos*) + *-mpw* | *-macos*) vendor=apple ;; - *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; - vos*) + *-vos*) vendor=stratus ;; esac ;; esac -echo "$cpu-$vendor-$os" +echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: diff -Nru libiberty-20201110/debian/changelog libiberty-20210106/debian/changelog --- libiberty-20201110/debian/changelog 2020-11-10 06:54:53.000000000 +0000 +++ libiberty-20210106/debian/changelog 2021-01-06 10:30:09.000000000 +0000 @@ -1,3 +1,10 @@ +libiberty (20210106-1) unstable; urgency=medium + + * Update to 20210106. + * Bump standards version. + + -- Matthias Klose Wed, 06 Jan 2021 11:30:09 +0100 + libiberty (20201110-1) unstable; urgency=medium * Update to 20201110. diff -Nru libiberty-20201110/debian/control libiberty-20210106/debian/control --- libiberty-20201110/debian/control 2020-11-10 06:54:53.000000000 +0000 +++ libiberty-20210106/debian/control 2021-01-06 10:30:09.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Debian GCC Maintainers Uploaders: Matthias Klose Build-Depends: debhelper (>= 11) -Standards-Version: 4.5.0 +Standards-Version: 4.5.1 Homepage: http://gcc.gnu.org/ Package: libiberty-dev @@ -17,4 +17,4 @@ . This library shouldn't be used by other software, but unfortunately already is. There is no guaranty for a stable library API, and no - shared library is provided. + shared library is provided. diff -Nru libiberty-20201110/debian/rules libiberty-20210106/debian/rules --- libiberty-20201110/debian/rules 2019-09-07 07:18:44.000000000 +0000 +++ libiberty-20210106/debian/rules 2021-01-06 10:30:09.000000000 +0000 @@ -42,23 +42,23 @@ build-arch: build-stamp build-indep: build: build-stamp -build-stamp: configure-stamp +build-stamp: configure-stamp dh_testdir $(MAKE) $(NJOBS) -C build touch $@ -clean: +clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp rm -rf build dh_autoreconf_clean - dh_clean + dh_clean install: build dh_testdir dh_testroot - dh_prep + dh_prep dh_installdirs \ /usr/include/libiberty \ /usr/lib/$(DEB_HOST_MULTIARCH) @@ -76,7 +76,7 @@ binary-arch: install dh_testdir dh_testroot - dh_installchangelogs + dh_installchangelogs dh_installdocs dh_strip dh_compress diff -Nru libiberty-20201110/include/alloca-conf.h libiberty-20210106/include/alloca-conf.h --- libiberty-20201110/include/alloca-conf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/alloca-conf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2020 Free Software Foundation, Inc. +/* Copyright (C) 2012-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/ansidecl.h libiberty-20210106/include/ansidecl.h --- libiberty-20201110/include/ansidecl.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/ansidecl.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ANSI and traditional C compatability macros - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/aout/aout64.h libiberty-20210106/include/aout/aout64.h --- libiberty-20201110/include/aout/aout64.h 2020-05-12 14:12:37.000000000 +0000 +++ libiberty-20210106/include/aout/aout64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* `a.out' object-file definitions, including extensions to 64-bit fields - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/ar.h libiberty-20210106/include/aout/ar.h --- libiberty-20201110/include/aout/ar.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/ar.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* archive file definition for GNU software - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/encap.h libiberty-20210106/include/aout/encap.h --- libiberty-20201110/include/aout/encap.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/encap.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Yet Another Try at encapsulating bfd object files in coff. - Copyright (C) 1988-2020 Free Software Foundation, Inc. + Copyright (C) 1988-2021 Free Software Foundation, Inc. Written by Pace Willisson 12/9/88 This file is obsolete. It needs to be converted to just define a bunch diff -Nru libiberty-20201110/include/aout/host.h libiberty-20210106/include/aout/host.h --- libiberty-20201110/include/aout/host.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/host.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* host.h - Parameters about the a.out format, based on the host system on which the program is compiled. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/hp.h libiberty-20210106/include/aout/hp.h --- libiberty-20201110/include/aout/hp.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/hp.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Special version of for use under HP-UX. - Copyright (C) 1988-2020 Free Software Foundation, Inc. + Copyright (C) 1988-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/hppa.h libiberty-20210106/include/aout/hppa.h --- libiberty-20201110/include/aout/hppa.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/hppa.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2012-2020 Free Software Foundation, Inc. +/* Copyright (C) 2012-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/ranlib.h libiberty-20210106/include/aout/ranlib.h --- libiberty-20201110/include/aout/ranlib.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/ranlib.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ranlib.h -- archive library index member definition for GNU. - Copyright (C) 1990-2020 Free Software Foundation, Inc. + Copyright (C) 1990-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/stab.def libiberty-20210106/include/aout/stab.def --- libiberty-20201110/include/aout/stab.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/stab.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Table of DBX symbol codes for the GNU system. - Copyright (C) 1988-2020 Free Software Foundation, Inc. + Copyright (C) 1988-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as diff -Nru libiberty-20201110/include/aout/stab_gnu.h libiberty-20210106/include/aout/stab_gnu.h --- libiberty-20201110/include/aout/stab_gnu.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/stab_gnu.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* gnu_stab.h Definitions for GNU extensions to STABS - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/aout/sun4.h libiberty-20210106/include/aout/sun4.h --- libiberty-20201110/include/aout/sun4.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/aout/sun4.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* SPARC-specific values for a.out files - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/bfdlink.h libiberty-20210106/include/bfdlink.h --- libiberty-20201110/include/bfdlink.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/bfdlink.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* bfdlink.h -- header file for BFD link routines - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. Written by Steve Chamberlain and Ian Lance Taylor, Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -655,9 +655,18 @@ /* May be used to set DT_FLAGS_1 for ELF. */ bfd_vma flags_1; + /* May be used to set DT_GNU_FLAGS_1 for ELF. */ + bfd_vma gnu_flags_1; + /* May be used to set ELF visibility for __start_* / __stop_. */ unsigned int start_stop_visibility; + /* The maximum page size for ELF. */ + bfd_vma maxpagesize; + + /* The common page size for ELF. */ + bfd_vma commonpagesize; + /* Start and end of RELRO region. */ bfd_vma relro_start, relro_end; @@ -671,7 +680,7 @@ /* Some forward-definitions used by some callbacks. */ struct elf_strtab_hash; -struct elf_sym_strtab; +struct elf_internal_sym; /* This structures holds a set of callback functions. These are called by the BFD linker routines. */ @@ -795,11 +804,17 @@ asection * current_section, asection * previous_section, bfd_boolean new_segment); /* This callback provides a chance for callers of the BFD to examine the - ELF string table and symbol table once they are complete and indexes and - offsets assigned. */ + ELF (dynamic) string table once it is complete. */ void (*examine_strtab) - (struct elf_sym_strtab *syms, bfd_size_type symcount, - struct elf_strtab_hash *symstrtab); + (struct elf_strtab_hash *symstrtab); + /* This callback is called just before a symbol is swapped out, so that the + CTF machinery can look up symbols during construction. The name is + already an external strtab offset at this point. */ + void (*ctf_new_symbol) + (int symidx, struct elf_internal_sym *sym); + /* Likewise, for dynamic symbols. */ + void (*ctf_new_dynsym) + (int symidx, struct elf_internal_sym *sym); /* This callback should emit the CTF section into a non-loadable section in the output BFD named .ctf or a name beginning with ".ctf.". */ void (*emit_ctf) diff -Nru libiberty-20201110/include/binary-io.h libiberty-20210106/include/binary-io.h --- libiberty-20201110/include/binary-io.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/binary-io.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Binary mode I/O. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/bout.h libiberty-20210106/include/bout.h --- libiberty-20201110/include/bout.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/bout.h 2021-01-04 12:43:12.000000000 +0000 @@ -2,7 +2,7 @@ GNU tools modified to support the i80960 (or tools that operate on object files created by such tools). - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/cgen/basic-modes.h libiberty-20210106/include/cgen/basic-modes.h --- libiberty-20201110/include/cgen/basic-modes.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/cgen/basic-modes.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Basic CGEN modes. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Contributed by Red Hat. This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/cgen/basic-ops.h libiberty-20210106/include/cgen/basic-ops.h --- libiberty-20201110/include/cgen/basic-ops.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/cgen/basic-ops.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Basic semantics ops support for CGEN. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Contributed by Red Hat. This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/cgen/bitset.h libiberty-20210106/include/cgen/bitset.h --- libiberty-20201110/include/cgen/bitset.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/cgen/bitset.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Header file the type CGEN_BITSET. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/ChangeLog libiberty-20210106/include/ChangeLog --- libiberty-20201110/include/ChangeLog 2020-11-10 06:49:46.000000000 +0000 +++ libiberty-20210106/include/ChangeLog 2021-01-06 10:26:58.000000000 +0000 @@ -1,876 +1,26 @@ -2020-11-09 Spencer E. Olson +2021-01-05 Nick Alcock - * opcode/pru.h: Add LMBD (left-most bit detect) opcode index. + * ctf-api.h (CTF_MN_RECURSE): New. + (ctf_member_next): Add flags argument. -2020-11-09 Przemyslaw Wirkus +2021-01-05 Nick Alcock - * opcode/aarch64.h (enum aarch64_opnd): Add new operand AARCH64_OPND_Rt_LS64. - -2020-11-06 Przemyslaw Wirkus - - * opcode/aarch64.h (AARCH64_FEATURE_PAC): Add new feature. - (AARCH64_ARCH_V8_3): Add back PAC to Armv8.3-A. - -2020-11-04 Przemyslaw Wirkus - - * opcode/aarch64.h (AARCH64_ARCH_V8): Add RAS to Armv8-A. - (AARCH64_ARCH_V8_2): Remove RAS from Armv8.2-A set. - -2020-11-03 Przemyslaw Wirkus - - * opcode/aarch64.h (AARCH64_FEATURE_LS64): New +ls64 feature flag. - (AARCH64_ARCH_V8_7): Add LS64 as part of Armv8.7-a. - -2020-10-30 H.J. Lu - - PR gas/26703 - * elf/common.h (GNU_PROPERTY_X86_ISA_1_BASELINE): New. - (GNU_PROPERTY_X86_ISA_1_V2): Uppdated. - (GNU_PROPERTY_X86_ISA_1_V3): Likewise. - (GNU_PROPERTY_X86_ISA_1_V4): Likewise. - -2020-10-27 Przemyslaw Wirkus - - * opcode/aarch64.h (AARCH64_FEATURE_CSRE): New -march feature. -(enum aarch64_opnd): New CSR instruction field AARCH64_OPND_CSRE_CSR. - -2020-10-26 Cooper Qu - - * opcode/csky.h (CSKY_VERSION_V1): New, currently used. - (CSKY_VERSION_V2): New. - (CSKY_VERSION_V3): New. - -2020-10-23 Przemyslaw Wirkus - - * opcode/aarch64.h (enum aarch64_opnd): New operand - AARCH64_OPND_BARRIER_DSB_NXS. - (aarch64_barrier_dsb_nxs_options): Declare DSB nXS options. - -2020-10-21 Tom Tromey - - * ctf-api.h (_CTF_ERRORS): New macro. - -2020-10-16 Nelson Chu - - * elf/riscv.h: Add R_RISCV_IRELATIVE to 58. - -2020-10-16 Przemyslaw Wirkus - - * opcode/aarch64.h (AARCH64_FEATURE_V8_7): New feature bitmask. - (AARCH64_ARCH_V8_7): New arch feature set. - -2020-10-09 H.J. Lu - - PR gas/26703 - * elf/common.h (GNU_PROPERTY_X86_ISA_1_USED): Renamed to ... - (GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED): This. - (GNU_PROPERTY_X86_ISA_1_NEEDED): Renamed to ... - (GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED): This. - (GNU_PROPERTY_X86_ISA_1_XXX): Renamed to ... - (GNU_PROPERTY_X86_COMPAT_2_ISA_1_XXX): This. - (GNU_PROPERTY_X86_ISA_1_NEEDED): New. - (GNU_PROPERTY_X86_ISA_1_USED): Likewise. - (GNU_PROPERTY_X86_ISA_1_V2): Likewise. - (GNU_PROPERTY_X86_ISA_1_V3): Likewise. - (GNU_PROPERTY_X86_ISA_1_V4): Likewise. - (GNU_PROPERTY_X86_FEATURE_2_MASK): Likewise. - -2020-09-23 Mark Wielaard - - Sync with GCC - * dwarf2.def: Add DWARF5 Unit type header encoding macros - DW_UT_FIRST, DW_UT and DW_UT_END. - * dwarf2.h (enum dwarf_unit_type): Removed and define using - DW_UT_FIRST, DW_UT and DW_UT_END macros. - (get_DW_UT_name): New function declaration. - -2020-09-12 H.J. Lu - - PR ld/26391 - * bfdlink.h (bfd_link_info): Add unique_symbol. - -2020-09-11 Felix Willgerodt - - Sync with GCC - 2020-09-08 Felix Willgerodt - - * floatformat.h (floatformat_bfloat16_big): New. - (floatformat_bfloat16_little): New. - -2020-09-12 Cooper Qu - - * opcode/csky.h (CSKYV1_ISA_E1): Convert to bfd_uint64_t type. - (CSKYV2_ISA_E1): Likewise. - (CSKYV2_ISA_1E2>): Likewise. - (CSKYV2_ISA_2E3>): Likewise. - (CSKYV2_ISA_3E7>): Likewise. - (CSKYV2_ISA_7E10): Likewise. - (CSKYV2_ISA_3E3R1): Likewise. - (CSKYV2_ISA_3E3R2): Likewise. - (CSKYV2_ISA_10E60): Likewise. - (CSKYV2_ISA_3E3R3): Likewise. - (CSKY_ISA_TRUST): Likewise. - (CSKY_ISA_CACHE): Likewise. - (CSKY_ISA_NVIC): Likewise. - (CSKY_ISA_CP): Likewise. - (CSKY_ISA_MP): Likewise. - (CSKY_ISA_MP_1E2): Likewise. - (CSKY_ISA_JAVA): Likewise. - (CSKY_ISA_MAC): Likewise. - (CSKY_ISA_MAC_DSP): Likewise. - (CSKY_ISA_DSP): Likewise. - (CSKY_ISA_DSP_1E2): Likewise. - (CSKY_ISA_DSP_ENHANCE): Likewise. - (CSKY_ISA_DSPE60): Likewise. - (CSKY_ISA_FLOAT_E1): Likewise. - (CSKY_ISA_FLOAT_1E2): Likewise. - (CSKY_ISA_FLOAT_1E3): Likewise. - (CSKY_ISA_FLOAT_3E4): Likewise. - (CSKY_ISA_FLOAT_7E60): Likewise. - (CSKY_ISA_VDSP): Likewise. - (CSKY_ISA_VDSP_2): Likewise. - (CSKY_ARCH_804): Define. - (CSKY_ARCH_805): Define. - (CSKY_ARCH_800): Define. - -2020-09-11 H.J. Lu - - * elf/common.h (NT_X86_CET): New. - -2020-09-10 Cooper Qu - - * opcode/csky.h (CSKY_ARCH_804): Define. - (CSKY_ARCH_805): Define. - (CSKY_ARCH_800): Define. - -2020-09-10 Nick Clifton - - * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Use a long long type for - this value. - -2020-09-07 Cooper Qu - - * opcode/csky.h (CSKY_ISA_DSPE60): Define. - -2020-09-07 Cooper Qu - - * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Define. - -2020-09-08 Jozef Lawrynowicz - Kuan-Lin Chen - - * elf/msp430.h (elf_msp430_reloc_type): Add - R_MSP430_GNU_{SET,SUB}_ULEB128. - (elf_msp430x_reloc_type): Add R_MSP430X_GNU_{SET,SUB}_ULEB128. - -2020-09-08 Alex Coplan - - * opcode/aarch64.h (aarch64_sys_ins_reg_supported_p): Also take - system register name in order to simplify validation for v8-R. - (aarch64_print_operand): Also take CPU feature set, as disassembly for - system registers now depends on arch variant. - -2020-09-08 Alex Coplan - - * opcode/aarch64.h (AARCH64_FEATURE_V8_A): New. - (AARCH64_FEATURE_V8_R): New. - (AARCH64_ARCH_V8): Include new A-profile feature bit. - (AARCH64_ARCH_V8_R): New. - -2020-09-02 Alan Modra - - * opcode/v850.h (struct v850_operand ): Make param op an - unsigned long. - -2020-09-02 Cooper Qu - - * opcode/csky.h (CSKYV2_ISA_3E3R3): Define. - -2020-08-31 Alan Modra - - PR 26493 - * opcode/riscv.h (OP_MASK_CSR, OP_MASK_CUSTOM_IMM) - (OP_MASK_FUNCT7, OP_MASK_RS3): Make unsigned. - -2020-08-31 Alan Modra - - PR 26457 - * som/aout.h (SOM_SUBSPACE_ACCESS_CONTROL_BITS_MASK): Make unsigned. - (SOM_SUBSPACE_MEMORY_RESIDENT, SOM_SUBSPACE_DUP_COMMON) - (SOM_SUBSPACE_IS_COMMON, SOM_SUBSPACE_IS_LOADABLE) - (SOM_SUBSPACE_QUADRANT_MASK, SOM_SUBSPACE_INITIALLY_FROZEN) - (SOM_SUBSPACE_IS_FIRST, SOM_SUBSPACE_CODE_ONLY) - (SOM_SUBSPACE_SORT_KEY_MASK, SOM_SUBSPACE_REPLICATE_INIT) - (SOM_SUBSPACE_CONTINUATION, SOM_SUBSPACE_IS_TSPECIFIC) - (SOM_SUBSPACE_IS_COMDAT): Likewise. - -2020-08-28 Cooper Qu - - * elf/csky.h (SHT_CSKY_ATTRIBUTES): Define. - (Tag_CSKY_ARCH_NAME): New enum constant. - (Tag_CSKY_CPU_NAME): Likewise. - (Tag_CSKY_ISA_FLAGS): Likewise. - (Tag_CSKY_DSP_VERSION): Likewise. - (Tag_CSKY_VDSP_VERSION): Likewise. - (Tag_CSKY_FPU_VERSION): Likewise. - (Tag_CSKY_FPU_ABI): Likewise. - (Tag_CSKY_FPU_ROUNDING): Likewise. - (Tag_CSKY_FPU_DENORMAL): Likewise. - (Tag_CSKY_FPU_Exception): Likewise. - (Tag_CSKY_FPU_NUMBER_MODULE): Likewise. - (Tag_CSKY_FPU_HARDFP): Likewise. - (Tag_CSKY_MAX): Likewise. - (VAL_CSKY_DSP_VERSION_EXTENSION): Likewise. - (VAL_CSKY_DSP_VERSION_2): Likewise. - (VAL_CSKY_VDSP_VERSION_1): Likewise. - (VAL_CSKY_VDSP_VERSION_2): Likewise. - (VAL_CSKY_FPU_ABI_SOFT): Likewise. - (VAL_CSKY_FPU_ABI_SOFTFP): Likewise. - (VAL_CSKY_FPU_ABI_HARD): Likewise. - (VAL_CSKY_FPU_HARDFP_HALF): Likewise. - (VAL_CSKY_FPU_HARDFP_SINGLE): Likewise. - (VAL_CSKY_FPU_HARDFP_DOUBLE): Likewise. - * opcode/csky.h (CSKY_ISA_VDSP_V2): Define. - CSKYV1_ISA_E1: Change to long constant type. - CSKYV2_ISA_E1: Likewise. - CSKYV2_ISA_1E2: Likewise. - CSKYV2_ISA_2E3: Likewise. - CSKYV2_ISA_3E7: Likewise. - CSKYV2_ISA_7E10: Likewise. - CSKYV2_ISA_3E3R1: Likewise. - CSKYV2_ISA_3E3R2: Likewise. - CSKYV2_ISA_10E60: Likewise. - CSKY_ISA_TRUST: Likewise. - CSKY_ISA_CACHE: Likewise. - CSKY_ISA_NVIC: Likewise. - CSKY_ISA_CP: Likewise. - CSKY_ISA_MP: Likewise. - CSKY_ISA_MP_1E2: Likewise. - CSKY_ISA_JAVA: Likewise. - CSKY_ISA_MAC: Likewise. - CSKY_ISA_MAC_DSP: Likewise. - CSKY_ISA_DSP: Likewise. - CSKY_ISA_DSP_1E2: Likewise. - CSKY_ISA_DSP_ENHANCE: Likewise. - CSKY_ISA_FLOAT_E1: Likewise. - CSKY_ISA_FLOAT_1E2: Likewise. - CSKY_ISA_FLOAT_1E3: Likewise. - CSKY_ISA_FLOAT_3E4: Likewise. - CSKY_ISA_VDSP: Likewise. - -2020-08-27 Nick Alcock - - * ctf-api.h (ctf_errwarning_next): New err parameter. - -2020-08-26 Nick Clifton - - PR 26405 - * elf/common.h (PT_OPENBSD_BOOTDATA): Define. - (PT_OPENBSD_RANDOMIZE): Define. - (PT_OPENBSD_WXNEEDED): Define. - -2020-08-26 Alan Modra - - PR 26458 - * elf/common.h (ELF32_R_INFO): Cast symbol index to unsigned. - -2020-08-24 Cooper Qu - - * opcode/csky.h (CSKYV2_ISA_10E60): New. - (CSKY_ARCH_860): New. - -2020-08-21 Cooper Qu - - * csky.h (CSKYV2_ISA_3E3R2): New. - -2020-08-21 Mark Wielaard - - * diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): Also define - for GCC 7.0 or higher. - -2020-08-10 Alex Coplan - - * opcode/aarch64.h (AARCH64_MAX_SYSREG_NAME_LEN): New. - -2020-08-10 Przemyslaw Wirkus - - * opcode/aarch64.h (aarch64_sys_reg_deprecated_p): Functions - paramaters changed. - (aarch64_sys_reg_supported_p): Function removed. - (aarch64_sys_ins_reg_supported_p): Functions paramaters changed. - -2020-07-28 Caroline Tice - - * dwarf2.h (enum dwarf_sect_v5): A new enum section for the - sections in a DWARF 5 DWP file (DWP version 5). - -2020-07-22 Nick Alcock - - * ctf-api.h (CTF_LINK_NONDEDUP): New, turn off the - deduplicator. - -2020-07-22 Nick Alcock - - * ctf-api.h (CTF_LINK_OMIT_VARIABLES_SECTION): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (CTF_LINK_SHARE_DUPLICATED): No longer unimplemented. - -2020-07-22 Nick Alcock - - * ctf-api.h (ctf_link_variable_filter_t): New. - (ctf_link_set_variable_filter): Likewise. - -2020-07-22 Nick Alcock - - * ctf-api.h (CTF_LINK_EMPTY_CU_MAPPINGS): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ECTF_NEEDSBFD): New. - (ECTF_NERR): Adjust. - (ctf_link): Rename share_mode arg to flags. - -2020-07-22 Nick Alcock - - * ctf-api.h (ECTF_INTERNAL): Adjust error text. - (ctf_errwarning_next): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ECTF_FLAGS): New. + * ctf-api.h (ECTF_INCOMPLETE): New. (ECTF_NERR): Adjust. - * ctf.h (CTF_F_MAX): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ECTF_NEXT_END): New error. - (ECTF_NEXT_WRONGFUN): Likewise. - (ECTF_NEXT_WRONGFP): Likewise. - (ECTF_NERR): Adjust. - (ctf_next_t): New. - (ctf_next_create): New prototype. - (ctf_next_destroy): Likewise. - (ctf_next_copy): Likewise. - (ctf_member_next): Likewise. - (ctf_enum_next): Likewise. - (ctf_type_next): Likewise. - (ctf_label_next): Likewise. - (ctf_variable_next): Likewise. - -2020-07-22 Nick Alcock - - * ctf-api.h (ctf_ref): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ctf_archive_count): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ctf_member_count): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ctf_type_kind_forwarded): New. - -2020-07-22 Nick Alcock - - * ctf-api.c (ctf_type_name_raw): New. - -2020-07-22 Nick Alcock - - * ctf-api.h (ECTF_*): Improve comments. - (ECTF_NERR): New. - -2020-07-22 Nick Alcock - - * ctf-api.h: Fix typos in comments. - -2020-07-22 H.J. Lu - - PR ld/26262 - PR ld/26267 - * bfdlink.h (bfd_link_info): Add lto_all_symbols_read. - -2020-07-11 H.J. Lu - - * elf/common.h (GNU_PROPERTY_X86_FEATURE_2_TMM): New. - -2020-07-09 John Baldwin - - * elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC) - (AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define. - -2020-07-09 Alan Modra - - * coff/powerpc.h: Delete. - -2020-07-04 Nick Clifton - - Binutils 2.35 branch created. - -2020-06-30 Nelson Chu - - * opcode/riscv-opc.h: Support the unprivileged CSR. The versions - of the unprivileged CSR should be PRIV_SPEC_CLASS_NONE for now. - * opcode/riscv.h (enum riscv_csr_class): Add CSR_CLASS_DEBUG. - -2020-06-30 Nelson Chu - - * opcode/riscv-opc.h: Cleanup and remove the unused macros. - -2020-06-29 Alan Modra - - * coff/internal.h: Use C style comments. - * coff/pe.h: Likewise. - * elf/ppc64.h: Likewise. - -2020-06-26 Nick Alcock - - * ctf-api.h (ctf_arc_bufopen): New. - -2020-06-26 Pat Bernardi - - * elf/m68k.h: Add enum for GNU object attribute with floating point - tag name and values. - -2020-06-25 Nick Clifton - - * libiberty.h (bsearch_r): Remove use of the register keyword from - the prototype. - -2020-06-24 H.J. Lu - - Sync with GCC - 2020-06-23 Nick Alcock - - * libiberty.h (bsearch_r): New. - - 2020-04-17 Martin Liska - Jonathan Yong <10walls@gmail.com> - - PR gcov-profile/94570 - * filenames.h (defined): Do not define HAVE_DOS_BASED_FILE_SYSTEM - for CYGWIN. - -2020-06-22 Alex Coplan - - * opcode/aarch64.h (AARCH64_FEATURE_SHA2): Normalize. - (AARCH64_FEATURE_AES): Likewise. - (AARCH64_FEATURE_V8_4): Likewise. - (AARCH64_FEATURE_SM4): Likewise. - (AARCH64_FEATURE_SHA3): Likewise. - (AARCH64_FEATURE_V8): Likewise. - (AARCH64_FEATURE_V8_2): Likewise. - (AARCH64_FEATURE_V8_3): Likewise. - (AARCH64_FEATURE_FP): Likewise. - (AARCH64_FEATURE_SIMD): Likewise. - (AARCH64_FEATURE_CRC): Likewise. - (AARCH64_FEATURE_LSE): Likewise. - (AARCH64_FEATURE_PAN): Likewise. - (AARCH64_FEATURE_LOR): Likewise. - (AARCH64_FEATURE_RDMA): Likewise. - (AARCH64_FEATURE_V8_1): Likewise. - (AARCH64_FEATURE_F16): Likewise. - (AARCH64_FEATURE_RAS): Likewise. - (AARCH64_FEATURE_PROFILE): Likewise. - (AARCH64_FEATURE_SVE): Likewise. - (AARCH64_FEATURE_RCPC): Likewise. - (AARCH64_FEATURE_COMPNUM): Likewise. - (AARCH64_FEATURE_DOTPROD): Likewise. - (AARCH64_FEATURE_F16_FML): Likewise. - (AARCH64_FEATURE_V8_5): Likewise. - (AARCH64_FEATURE_V8_6): Likewise. - (AARCH64_FEATURE_BFLOAT16): Likewise. - (AARCH64_FEATURE_FLAGMANIP): Likewise. - (AARCH64_FEATURE_FRINTTS): Likewise. - (AARCH64_FEATURE_SB): Likewise. - (AARCH64_FEATURE_PREDRES): Likewise. - (AARCH64_FEATURE_CVADP): Likewise. - (AARCH64_FEATURE_RNG): Likewise. - (AARCH64_FEATURE_BTI): Likewise. - (AARCH64_FEATURE_SCXTNUM): Likewise. - (AARCH64_FEATURE_ID_PFR2): Likewise. - (AARCH64_FEATURE_SSBS): Likewise. - (AARCH64_FEATURE_MEMTAG): Likewise. - (AARCH64_FEATURE_TME): Likewise. - (AARCH64_FEATURE_I8MM): Likewise. - (AARCH64_FEATURE_F32MM): Likewise. - (AARCH64_FEATURE_F64MM): Likewise. - (AARCH64_FEATURE_SVE2): Likewise. - (AARCH64_FEATURE_SVE2_AES): Likewise. - (AARCH64_FEATURE_SVE2_BITPERM): Likewise. - (AARCH64_FEATURE_SVE2_SM4): Likewise. - (AARCH64_FEATURE_SVE2_SHA3): Likewise. - -2020-06-22 Saagar Jha - - * mach-o/loader.h: Add declarations of two new Mach-O load - commands. - -2020-06-22 Nelson Chu - - * opcode/riscv.h (riscv_get_priv_spec_class): Move the function - forward declarations to bfd/elfxx-riscv.h. - (riscv_get_priv_spec_name): Likewise. - -2020-06-15 Max Filippov - - * elf/xtensa.h (xtensa_abi_choice): New declaration. - -2020-06-12 Roland McGrath - - * bfdlink.h (struct bfd_link_info): New field start_stop_visibility. - -2020-06-12 Nelson Chu - - * opcode/riscv-opc.h: Update the defined versions of CSR from - PRIV_SPEC_CLASS_1P9 to PRIV_SPEC_CLASS_1P9P1. Also, drop the - MISA DECLARE_CSR_ALIAS since it's aborted version is v1.9. - * opcode/riscv.h (enum riscv_priv_spec_class): Remove - PRIV_SPEC_CLASS_1P9. - -2020-06-11 Alex Coplan - - * opcode/aarch64.h (aarch64_sys_reg): Add required features to struct - describing system registers. - -2020-06-11 Alan Modra - - * elf/mips.h (Elf32_RegInfo): Use fixed width integer types. - (Elf64_Internal_RegInfo, Elf_Internal_Options): Likewise. - -2020-06-06 Alan Modra - - * elf/ppc64.h (elf_ppc64_reloc_type): Rename - R_PPC64_GOT_TLSGD34 to R_PPC64_GOT_TLSGD_PCREL34, - R_PPC64_GOT_TLSLD34 to R_PPC64_GOT_TLSLD_PCREL34, - R_PPC64_GOT_TPREL34 to R_PPC64_GOT_TPREL_PCREL34, and - R_PPC64_GOT_DTPREL34 to R_PPC64_GOT_DTPREL_PCREL34. - -2020-06-04 Jose E. Marchesi - - * opcode/cgen.h: Get an `endian' argument in both - cgen_get_insn_value and cgen_put_insn_value. - -2020-06-04 Jose E. Marchesi - - * opcode/cgen.h (enum cgen_cpu_open_arg): New value - CGEN_CPU_OPEN_INSN_ENDIAN. - -2020-06-03 Nelson Chu - - * opcode/riscv.h: Remove #include "bfd.h". And change the return - types of riscv_get_isa_spec_class and riscv_get_priv_spec_class - from bfd_boolean to int. - -2020-05-28 Alan Modra - - PR 26044 - * opcode/tilepro.h (TILEPRO_NUM_PIPELINE_ENCODINGS): Move to - tilepro_pipeline enum. - -2020-05-27 H.J. Lu - - PR ld/22909 - * bfdlink.h (textrel_check_method): New enum. - (bfd_link_textrel_check): New. - (bfd_link_info): Replace warn_shared_textrel and error_textrel - with textrel_check. - -2020-05-25 H.J. Lu - - * elf/common.h: Update comments for ET_EXEC and ET_DYN. - -2020-05-20 Nelson Chu - - * opcode/riscv.h: Include "bfd.h" to support bfd_boolean. - (enum riscv_isa_spec_class): New enum class. All supported ISA spec - belong to one of the class - (struct riscv_ext_version): New structure holds version information - for the specific ISA. - * opcode/riscv-opc.h (DECLARE_CSR): There are two version information, - define_version and abort_version. The define_version means which - privilege spec is started to define the CSR, and the abort_version - means which privilege spec is started to abort the CSR. If the CSR is - valid for the newest spec, then the abort_version should be - PRIV_SPEC_CLASS_DRAFT. - (DECLARE_CSR_ALIAS): Same as DECLARE_CSR, but only for the obselete CSR. - * opcode/riscv.h (enum riscv_priv_spec_class): New enum class. Define - the current supported privilege spec versions. - (struct riscv_csr_extra): Add new fields to store more information - about the CSR. We use these information to find the suitable CSR - address when user choosing a specific privilege spec. - -2020-05-19 Alexander Fedotov - - PR 25992 - * opcode/arm.h (ARM_EXT2_V8R): Define. Modified ARM_AEXT2_V8R. - -2020-05-11 Alan Modra - - * opcode/ppc.h (PPC_OPERAND_ACC): Define. Renumber following - PPC_OPERAND defines. - -2020-05-11 Alan Modra - - * elf/ppc64.h: Update comment. - * opcode/ppc.h (PPC_OPCODE_POWER10): Rename from PPC_OPCODE_POWERXX. - -2020-04-30 Alex Coplan - - * opcode/aarch64.h (enum aarch64_opnd): Add - AARCH64_OPND_UNDEFINED. - -2020-04-23 Anton Kolesov - - * elf/common.h (NT_ARC_V2): New macro definitions. - -2020-04-22 Max Filippov - - PR ld/25861 - * elf/xtensa.h (elf_xtensa_reloc_type): New entries for - R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}. - -2020-04-21 Alan Modra - - * elf/sh.h (STO_SH5_ISA32, SHF_SH5_ISA32, SHF_SH5_ISA32_MIXED), - (SHT_SH5_CR_SORTED, STT_DATALABEL): Delete. - -2020-04-10 Fangrui Song - - PR binutils/24613 - * bfdlink.h (enum report_method): Delete RM_GENERATE_WARNING and - RM_GENERATE_ERROR. Add RM_DIAGNOSE. - (struct bfd_link_info): Add warn_unresolved_syms. - -2020-04-14 Stephen Casner - - PR ld/25677 - * aout/aout64.h (N_DATADDR): Add IMAGIC case. - -2020-04-02 Jan W. Jagersma - - * coff/go32exe.h: Remove file. - * coff/internal.h (struct internal_filehdr): Remove field - go32stub. Remove flag F_GO32STUB. - -2020-04-01 Martin Liska - Maciej W. Rozycki - - PR lto/94249 - * plugin-api.h: Fix a typo. - -2020-03-30 Nelson Chu - - * opcode/riscv-opc.h: Update CSR to 1.11. - -2020-03-26 John Baldwin - - * elf/common.h (AT_FREEBSD_BSDFLAGS): Define. - -2020-03-24 Martin Liska - - PR lto/94249 - * plugin-api.h: Add more robust endianess detection. - -2020-03-21 Martin Liska - - * plugin-api.h (enum ld_plugin_symbol_type): Remove - comma after last value of an enum. - * lto-symtab.h (enum gcc_plugin_symbol_type): Likewise. - -2020-03-19 Martin Liska - - * lto-symtab.h (enum gcc_plugin_symbol_type): New. - (enum gcc_plugin_symbol_section_kind): Likewise. - -2020-03-19 Martin Liska - - * plugin-api.h (struct ld_plugin_symbol): Split - int def into 4 char fields. - (enum ld_plugin_symbol_type): New. - (enum ld_plugin_symbol_section_kind): New. - (enum ld_plugin_tag): Add LDPT_ADD_SYMBOLS_V2. - -2020-03-13 Kamil Rytarowski - - * elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define. - -2020-03-13 Kamil Rytarowski - - * elf/common.h (NT_NETBSDCORE_AUXV): New define. - -2020-03-13 Christophe Lyon - - * bfdlink.h (bfd_link_info): Add non_contiguous_regions and - non_contiguous_regions_warnings fields. - -2020-03-13 Christian Eggers - - * bfdlink.h (struct bfd_link_order): Add unit (bytes/octets) to - offset and size members. - * elf/internal.h (struct elf_internal_phdr): Likewise for - p_align member. - (struct elf_segment_map): Likewise for p_paddr and p_size - members - -2020-03-13 Christian Eggers - - * elf/internal.h (struct elf_internal_phdr): Add unit (octets) - to several member field comments. - (Elf_Internal_Shdr): likewise. - -2020-03-10 Alan Modra - - * som/aout.h (SOM_AUX_ID_MANDATORY, SOM_SPACE_IS_LOADABLE), - (SOM_SYMBOL_HIDDEN, SOM_SYMBOL_HAS_LONG_RETURN): Use 1u << 31. - * som/lst.h (LST_SYMBOL_HIDDEN): Likewise. - -2020-03-03 Luis Machado - - * elf/common.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY) - (AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE) - (AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY) - (AT_MINSIGSTKSZ): New defines, imported from glibc. - -2020-02-25 Andrew Burgess - - Import from gcc mainline: - 2020-02-05 Andrew Burgess - - * hashtab.h (htab_remove_elt): Make a parameter const. - (htab_remove_elt_with_hash): Likewise. - -2020-02-20 Nelson Chu - - * opcode/riscv-opc.h: Extend DECLARE_CSR and DECLARE_CSR_ALIAS to - record riscv_csr_class. - -2020-02-10 Stam Markianos-Wright - Matthew Malcomson - - * opcode/arm.h (ARM_EXT2_CDE): New extension macro. - (ARM_EXT2_CDE0): New extension macro. - (ARM_EXT2_CDE1): New extension macro. - (ARM_EXT2_CDE2): New extension macro. - (ARM_EXT2_CDE3): New extension macro. - (ARM_EXT2_CDE4): New extension macro. - (ARM_EXT2_CDE5): New extension macro. - (ARM_EXT2_CDE6): New extension macro. - (ARM_EXT2_CDE7): New extension macro. - -2020-02-07 Sergey Belyashov - - PR 25469 - * coff/internal.h (R_IMM16BE): Define. - * elf/z80.h (EF_Z80_MACH_Z80N): Define. - (R_Z80_16_BE): New reloc. - -2020-02-04 Alan Modra - - * opcode/d30v.h (struct pd_reg): Make value field unsigned. - -2020-01-16 Jon Turney - - * coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE) - (PE_IMAGE_DEBUG_TYPE_POGO, PE_IMAGE_DEBUG_TYPE_ILTCG) - (PE_IMAGE_DEBUG_TYPE_MPX, PE_IMAGE_DEBUG_TYPE_REPRO): Add. - -2020-01-18 Nick Clifton - - Binutils 2.34 branch created. - -2020-01-17 Nick Clifton - - * Import from gcc mainline: - 2019-06-10 Martin Liska - - * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): New macro. - * libiberty.h (xmalloc): Use it. - (xrealloc): Likewise. - (xcalloc): Likewise. - (xstrdup): Likewise. - (xstrndup): Likewise. - (xmemdup): Likewise. - - 2019-06-10 Martin Liska - - * ansidecl.h: - (ATTRIBUTE_RESULT_SIZE_1): Define new macro. - (ATTRIBUTE_RESULT_SIZE_2): Likewise. - (ATTRIBUTE_RESULT_SIZE_1_2): Likewise. - * libiberty.h (xmalloc): Add RESULT_SIZE attribute. - (xrealloc): Likewise. - (xcalloc): Likewise. - - 2019-11-16 Tim Ruehsen - - * demangle.h (struct demangle_component): Add member - d_counting. - - 2019-11-16 Eduard-Mihai Burtescu - - * demangle.h (rust_demangle_callback): Add. - - 2019-07-18 Eduard-Mihai Burtescu - - * demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h. - (rust_demangle_sym): Move to libiberty/rust-demangle.h. - -2020-01-16 Andre Vieira - - PR 25376 - * opcodes/arm.h (FPU_MVE, FPU_MVE_FPU): Move these features to... - (ARM_EXT2_MVE, ARM_EXT2_MVE_FP): ... the CORE_HIGH space. - (ARM_ANY): Redefine to not include any MVE bits. - (ARM_FEATURE_ALL): Removed. - -2020-01-15 Jozef Lawrynowicz - - * opcode/msp430.h (enum msp430_expp_e): New. - (struct msp430_operand_s): Add expp member to struct. - -2020-01-13 Claudiu Zissulescu - - * elf/arc-cpu.def: Update ARC cpu list. - -2020-01-13 Alan Modra - - * opcode/tic4x.h (EXTR): Delete. - (EXTRU, EXTRS, INSERTU, INSERTS): Rewrite without zero/sign - extension using shifts. Do trim INSERTU value to specified bitfield. - -2020-01-10 Alan Modra - - * opcode/spu.h: Formatting. - (UNSIGNED_EXTRACT): Use 1u. - (SIGNED_EXTRACT): Don't sign extend with shifts. - (DECODE_INSN_I9a, DECODE_INSN_I9b): Avoid left shift of signed value. - Keep result signed. - (DECODE_INSN_U9a, DECODE_INSN_U9b): Delete. - -2020-01-07 Shahab Vahedi - - * opcode/arc.h (insn_class_t): Add 'LLOCK' and 'SCOND'. - -2020-01-02 Sergey Belyashov - - * coff/internal.h: Add defintions of Z80 reloc names. -2020-01-02 Christian Biesinger +2021-01-01 Nicolas Boulenguez - * opcode/s12z.h: Undef REG_Y. + * coff/internal.h: Correct comment spelling. + * coff/sym.h: Likewise. + * opcode/aarch64.h: Likewise. -2020-01-01 Alan Modra +2021-01-01 Alan Modra Update year range in copyright notice of all files. -For older changes see ChangeLog-2019 +For older changes see ChangeLog-2020 -Copyright (C) 2020 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff -Nru libiberty-20201110/include/ChangeLog-2020 libiberty-20210106/include/ChangeLog-2020 --- libiberty-20201110/include/ChangeLog-2020 1970-01-01 00:00:00.000000000 +0000 +++ libiberty-20210106/include/ChangeLog-2020 2021-01-04 12:43:12.000000000 +0000 @@ -0,0 +1,1020 @@ +2020-12-23 H.J. Lu + + * elf/common.h (GNU_PROPERTY_X86_FEATURE_1_LAM_U48): New. + (GNU_PROPERTY_X86_FEATURE_1_LAM_U57): Likewise. + +2020-12-18 Alan Modra + + * xtensa-isa-internal.h (xtisa_errno, xtisa_error_msg): Delete. + +2020-12-18 Alan Modra + + * opcode/arc-attrs.h (CONFLICT_LIST): Make const. + +2020-12-16 Alan Modra + + * bfdlink.h (struct bfd_link_info): Add maxpagesize and + commonpagesize. + +2020-12-16 Alan Modra + + * xtensa-isa-internal.h (xtensa_format_internal), + (xtensa_slot_internal, xtensa_operand_internal), + (xtensa_arg_internal, xtensa_iclass_internal), + (xtensa_opcode_internal, xtensa_regfile_internal), + (xtensa_interface_internal, xtensa_funcUnit_internal), + (xtensa_state_internal, xtensa_sysreg_internal): Constify. + +2020-12-15 Vivek Das Mohapatra + + * elf/common.h (DT_GNU_FLAGS_1, DF_GNU_1_UNIQUE): Define. + * bfdlink.h (struct bfd_link_info): New field gnu_flags_1. + +2020-12-11 Cary Coutant + + * elf/common.h: Update list of e_machine values. + +2020-12-10 Nelson Chu + + * opcode/riscv.h (M_ZEXTH, M_ZEXTW, M_SEXTB, M_SEXTH.): Added. + +2020-12-10 Nelson Chu + + * opcode/riscv.h: Add INSN_CLASS_ZICSR and INSN_CLASS_ZIFENCEI. + +2020-12-07 Nick Clifton + + * elf/common.h (SHF_GNU_BUILD_NOTE): Delete. + +2020-12-01 Nelson Chu + + * opcode/riscv.h (RISCV_UNKNOWN_VERSION): added. + +2020-12-01 Nelson Chu + + * opcode/riscv.h (riscv_ext_version): + Change the version type from unsigned to int. + +2020-11-23 Nick Alcock + + * ctf-api.h: Style nit: remove () on function names in comments. + (ctf_sect_t): Mention endianness concerns. + (ctf_symsect_endianness): New declaration. + (ctf_arc_symsect_endianness): Likewise. + +2020-11-20 Nick Alcock + + * ctf-api.h (ctf_getsymsect): New. + (ctf_getstrsect): Likewise. + +2020-11-20 Nick Alcock + + * ctf-api.h (ctf_arc_lookup_symbol): New. + (ctf_arc_flush_caches): Likewise. + * ctf.h: Document new auto-ctf_import behaviour. + +2020-11-20 Nick Alcock + + * ctf-api.h (ctf_symbol_next): New. + (ctf_add_objt_sym): Likewise. + (ctf_add_func_sym): Likewise. + * ctf.h: Document new function info section format. + (CTF_F_NEWFUNCINFO): New. + (CTF_F_IDXSORTED): New. + (CTF_F_MAX): Adjust accordingly. + +2020-11-20 Nick Alcock + + * bfdlink.h (struct elf_sym_strtab): Replace with... + (struct elf_internal_sym): ... this. + (struct bfd_link_callbacks) : Take only a + symstrtab argument. + : New. + : Likewise. + * ctf-api.h (struct ctf_link_sym) : New. + : Likewise. + : Likewise. + (ctf_link_iter_symbol_f): Removed. + (ctf_link_shuffle_syms): Remove most parameters, just takes a + ctf_dict_t now. + (ctf_link_add_linker_symbol): New, split from + ctf_link_shuffle_syms. + * ctf.h (CTF_F_DYNSTR): New. + (CTF_F_MAX): Adjust. + +2020-11-20 Nick Alcock + + * ctf-api.h (ctf_arc_open_by_name): Rename to... + (ctf_dict_open): ... this, keeping compatibility function. + (ctf_arc_open_by_name_sections): Rename to... + (ctf_dict_open_sections): ... this, keeping compatibility function. + +2020-11-20 Nick Alcock + + * ctf-api.h (ctf_file_t): Rename to... + (ctf_dict_t): ... this. Keep ctf_file_t around for compatibility. + (struct ctf_file): Likewise rename to... + (struct ctf_dict): ... this. + (ctf_file_close): Rename to... + (ctf_dict_close): ... this, keeping compatibility function. + (ctf_parent_file): Rename to... + (ctf_parent_dict): ... this, keeping compatibility function. + All callers adjusted. + * ctf.h: Rename references to ctf_file_t to ctf_dict_t. + (struct ctf_archive) : Rename to... + : ... this. + +2020-11-18 Jozef Lawrynowicz + + * elf/common.h (SHF_GNU_RETAIN): Define. + +2020-11-16 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_FLAGM): Add new feature. + (AARCH64_FEATURE_FLAGMANIP): Update comment. + (AARCH64_ARCH_V8_4): Add back FLAGM to Armv8.4-A. + +2020-11-09 Spencer E. Olson + + * opcode/pru.h: Add LMBD (left-most bit detect) opcode index. + +2020-11-09 Przemyslaw Wirkus + + * opcode/aarch64.h (enum aarch64_opnd): Add new operand AARCH64_OPND_Rt_LS64. + +2020-11-06 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_PAC): Add new feature. + (AARCH64_ARCH_V8_3): Add back PAC to Armv8.3-A. + +2020-11-04 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_ARCH_V8): Add RAS to Armv8-A. + (AARCH64_ARCH_V8_2): Remove RAS from Armv8.2-A set. + +2020-11-03 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_LS64): New +ls64 feature flag. + (AARCH64_ARCH_V8_7): Add LS64 as part of Armv8.7-a. + +2020-10-30 H.J. Lu + + PR gas/26703 + * elf/common.h (GNU_PROPERTY_X86_ISA_1_BASELINE): New. + (GNU_PROPERTY_X86_ISA_1_V2): Uppdated. + (GNU_PROPERTY_X86_ISA_1_V3): Likewise. + (GNU_PROPERTY_X86_ISA_1_V4): Likewise. + +2020-10-27 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_CSRE): New -march feature. +(enum aarch64_opnd): New CSR instruction field AARCH64_OPND_CSRE_CSR. + +2020-10-26 Cooper Qu + + * opcode/csky.h (CSKY_VERSION_V1): New, currently used. + (CSKY_VERSION_V2): New. + (CSKY_VERSION_V3): New. + +2020-10-23 Przemyslaw Wirkus + + * opcode/aarch64.h (enum aarch64_opnd): New operand + AARCH64_OPND_BARRIER_DSB_NXS. + (aarch64_barrier_dsb_nxs_options): Declare DSB nXS options. + +2020-10-21 Tom Tromey + + * ctf-api.h (_CTF_ERRORS): New macro. + +2020-10-16 Nelson Chu + + * elf/riscv.h: Add R_RISCV_IRELATIVE to 58. + +2020-10-16 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_V8_7): New feature bitmask. + (AARCH64_ARCH_V8_7): New arch feature set. + +2020-10-09 H.J. Lu + + PR gas/26703 + * elf/common.h (GNU_PROPERTY_X86_ISA_1_USED): Renamed to ... + (GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED): This. + (GNU_PROPERTY_X86_ISA_1_NEEDED): Renamed to ... + (GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED): This. + (GNU_PROPERTY_X86_ISA_1_XXX): Renamed to ... + (GNU_PROPERTY_X86_COMPAT_2_ISA_1_XXX): This. + (GNU_PROPERTY_X86_ISA_1_NEEDED): New. + (GNU_PROPERTY_X86_ISA_1_USED): Likewise. + (GNU_PROPERTY_X86_ISA_1_V2): Likewise. + (GNU_PROPERTY_X86_ISA_1_V3): Likewise. + (GNU_PROPERTY_X86_ISA_1_V4): Likewise. + (GNU_PROPERTY_X86_FEATURE_2_MASK): Likewise. + +2020-09-23 Mark Wielaard + + Sync with GCC + * dwarf2.def: Add DWARF5 Unit type header encoding macros + DW_UT_FIRST, DW_UT and DW_UT_END. + * dwarf2.h (enum dwarf_unit_type): Removed and define using + DW_UT_FIRST, DW_UT and DW_UT_END macros. + (get_DW_UT_name): New function declaration. + +2020-09-12 H.J. Lu + + PR ld/26391 + * bfdlink.h (bfd_link_info): Add unique_symbol. + +2020-09-11 Felix Willgerodt + + Sync with GCC + 2020-09-08 Felix Willgerodt + + * floatformat.h (floatformat_bfloat16_big): New. + (floatformat_bfloat16_little): New. + +2020-09-12 Cooper Qu + + * opcode/csky.h (CSKYV1_ISA_E1): Convert to bfd_uint64_t type. + (CSKYV2_ISA_E1): Likewise. + (CSKYV2_ISA_1E2>): Likewise. + (CSKYV2_ISA_2E3>): Likewise. + (CSKYV2_ISA_3E7>): Likewise. + (CSKYV2_ISA_7E10): Likewise. + (CSKYV2_ISA_3E3R1): Likewise. + (CSKYV2_ISA_3E3R2): Likewise. + (CSKYV2_ISA_10E60): Likewise. + (CSKYV2_ISA_3E3R3): Likewise. + (CSKY_ISA_TRUST): Likewise. + (CSKY_ISA_CACHE): Likewise. + (CSKY_ISA_NVIC): Likewise. + (CSKY_ISA_CP): Likewise. + (CSKY_ISA_MP): Likewise. + (CSKY_ISA_MP_1E2): Likewise. + (CSKY_ISA_JAVA): Likewise. + (CSKY_ISA_MAC): Likewise. + (CSKY_ISA_MAC_DSP): Likewise. + (CSKY_ISA_DSP): Likewise. + (CSKY_ISA_DSP_1E2): Likewise. + (CSKY_ISA_DSP_ENHANCE): Likewise. + (CSKY_ISA_DSPE60): Likewise. + (CSKY_ISA_FLOAT_E1): Likewise. + (CSKY_ISA_FLOAT_1E2): Likewise. + (CSKY_ISA_FLOAT_1E3): Likewise. + (CSKY_ISA_FLOAT_3E4): Likewise. + (CSKY_ISA_FLOAT_7E60): Likewise. + (CSKY_ISA_VDSP): Likewise. + (CSKY_ISA_VDSP_2): Likewise. + (CSKY_ARCH_804): Define. + (CSKY_ARCH_805): Define. + (CSKY_ARCH_800): Define. + +2020-09-11 H.J. Lu + + * elf/common.h (NT_X86_CET): New. + +2020-09-10 Cooper Qu + + * opcode/csky.h (CSKY_ARCH_804): Define. + (CSKY_ARCH_805): Define. + (CSKY_ARCH_800): Define. + +2020-09-10 Nick Clifton + + * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Use a long long type for + this value. + +2020-09-07 Cooper Qu + + * opcode/csky.h (CSKY_ISA_DSPE60): Define. + +2020-09-07 Cooper Qu + + * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Define. + +2020-09-08 Jozef Lawrynowicz + Kuan-Lin Chen + + * elf/msp430.h (elf_msp430_reloc_type): Add + R_MSP430_GNU_{SET,SUB}_ULEB128. + (elf_msp430x_reloc_type): Add R_MSP430X_GNU_{SET,SUB}_ULEB128. + +2020-09-08 Alex Coplan + + * opcode/aarch64.h (aarch64_sys_ins_reg_supported_p): Also take + system register name in order to simplify validation for v8-R. + (aarch64_print_operand): Also take CPU feature set, as disassembly for + system registers now depends on arch variant. + +2020-09-08 Alex Coplan + + * opcode/aarch64.h (AARCH64_FEATURE_V8_A): New. + (AARCH64_FEATURE_V8_R): New. + (AARCH64_ARCH_V8): Include new A-profile feature bit. + (AARCH64_ARCH_V8_R): New. + +2020-09-02 Alan Modra + + * opcode/v850.h (struct v850_operand ): Make param op an + unsigned long. + +2020-09-02 Cooper Qu + + * opcode/csky.h (CSKYV2_ISA_3E3R3): Define. + +2020-08-31 Alan Modra + + PR 26493 + * opcode/riscv.h (OP_MASK_CSR, OP_MASK_CUSTOM_IMM) + (OP_MASK_FUNCT7, OP_MASK_RS3): Make unsigned. + +2020-08-31 Alan Modra + + PR 26457 + * som/aout.h (SOM_SUBSPACE_ACCESS_CONTROL_BITS_MASK): Make unsigned. + (SOM_SUBSPACE_MEMORY_RESIDENT, SOM_SUBSPACE_DUP_COMMON) + (SOM_SUBSPACE_IS_COMMON, SOM_SUBSPACE_IS_LOADABLE) + (SOM_SUBSPACE_QUADRANT_MASK, SOM_SUBSPACE_INITIALLY_FROZEN) + (SOM_SUBSPACE_IS_FIRST, SOM_SUBSPACE_CODE_ONLY) + (SOM_SUBSPACE_SORT_KEY_MASK, SOM_SUBSPACE_REPLICATE_INIT) + (SOM_SUBSPACE_CONTINUATION, SOM_SUBSPACE_IS_TSPECIFIC) + (SOM_SUBSPACE_IS_COMDAT): Likewise. + +2020-08-28 Cooper Qu + + * elf/csky.h (SHT_CSKY_ATTRIBUTES): Define. + (Tag_CSKY_ARCH_NAME): New enum constant. + (Tag_CSKY_CPU_NAME): Likewise. + (Tag_CSKY_ISA_FLAGS): Likewise. + (Tag_CSKY_DSP_VERSION): Likewise. + (Tag_CSKY_VDSP_VERSION): Likewise. + (Tag_CSKY_FPU_VERSION): Likewise. + (Tag_CSKY_FPU_ABI): Likewise. + (Tag_CSKY_FPU_ROUNDING): Likewise. + (Tag_CSKY_FPU_DENORMAL): Likewise. + (Tag_CSKY_FPU_Exception): Likewise. + (Tag_CSKY_FPU_NUMBER_MODULE): Likewise. + (Tag_CSKY_FPU_HARDFP): Likewise. + (Tag_CSKY_MAX): Likewise. + (VAL_CSKY_DSP_VERSION_EXTENSION): Likewise. + (VAL_CSKY_DSP_VERSION_2): Likewise. + (VAL_CSKY_VDSP_VERSION_1): Likewise. + (VAL_CSKY_VDSP_VERSION_2): Likewise. + (VAL_CSKY_FPU_ABI_SOFT): Likewise. + (VAL_CSKY_FPU_ABI_SOFTFP): Likewise. + (VAL_CSKY_FPU_ABI_HARD): Likewise. + (VAL_CSKY_FPU_HARDFP_HALF): Likewise. + (VAL_CSKY_FPU_HARDFP_SINGLE): Likewise. + (VAL_CSKY_FPU_HARDFP_DOUBLE): Likewise. + * opcode/csky.h (CSKY_ISA_VDSP_V2): Define. + CSKYV1_ISA_E1: Change to long constant type. + CSKYV2_ISA_E1: Likewise. + CSKYV2_ISA_1E2: Likewise. + CSKYV2_ISA_2E3: Likewise. + CSKYV2_ISA_3E7: Likewise. + CSKYV2_ISA_7E10: Likewise. + CSKYV2_ISA_3E3R1: Likewise. + CSKYV2_ISA_3E3R2: Likewise. + CSKYV2_ISA_10E60: Likewise. + CSKY_ISA_TRUST: Likewise. + CSKY_ISA_CACHE: Likewise. + CSKY_ISA_NVIC: Likewise. + CSKY_ISA_CP: Likewise. + CSKY_ISA_MP: Likewise. + CSKY_ISA_MP_1E2: Likewise. + CSKY_ISA_JAVA: Likewise. + CSKY_ISA_MAC: Likewise. + CSKY_ISA_MAC_DSP: Likewise. + CSKY_ISA_DSP: Likewise. + CSKY_ISA_DSP_1E2: Likewise. + CSKY_ISA_DSP_ENHANCE: Likewise. + CSKY_ISA_FLOAT_E1: Likewise. + CSKY_ISA_FLOAT_1E2: Likewise. + CSKY_ISA_FLOAT_1E3: Likewise. + CSKY_ISA_FLOAT_3E4: Likewise. + CSKY_ISA_VDSP: Likewise. + +2020-08-27 Nick Alcock + + * ctf-api.h (ctf_errwarning_next): New err parameter. + +2020-08-26 Nick Clifton + + PR 26405 + * elf/common.h (PT_OPENBSD_BOOTDATA): Define. + (PT_OPENBSD_RANDOMIZE): Define. + (PT_OPENBSD_WXNEEDED): Define. + +2020-08-26 Alan Modra + + PR 26458 + * elf/common.h (ELF32_R_INFO): Cast symbol index to unsigned. + +2020-08-24 Cooper Qu + + * opcode/csky.h (CSKYV2_ISA_10E60): New. + (CSKY_ARCH_860): New. + +2020-08-21 Cooper Qu + + * csky.h (CSKYV2_ISA_3E3R2): New. + +2020-08-21 Mark Wielaard + + * diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): Also define + for GCC 7.0 or higher. + +2020-08-10 Alex Coplan + + * opcode/aarch64.h (AARCH64_MAX_SYSREG_NAME_LEN): New. + +2020-08-10 Przemyslaw Wirkus + + * opcode/aarch64.h (aarch64_sys_reg_deprecated_p): Functions + paramaters changed. + (aarch64_sys_reg_supported_p): Function removed. + (aarch64_sys_ins_reg_supported_p): Functions paramaters changed. + +2020-07-28 Caroline Tice + + * dwarf2.h (enum dwarf_sect_v5): A new enum section for the + sections in a DWARF 5 DWP file (DWP version 5). + +2020-07-22 Nick Alcock + + * ctf-api.h (CTF_LINK_NONDEDUP): New, turn off the + deduplicator. + +2020-07-22 Nick Alcock + + * ctf-api.h (CTF_LINK_OMIT_VARIABLES_SECTION): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (CTF_LINK_SHARE_DUPLICATED): No longer unimplemented. + +2020-07-22 Nick Alcock + + * ctf-api.h (ctf_link_variable_filter_t): New. + (ctf_link_set_variable_filter): Likewise. + +2020-07-22 Nick Alcock + + * ctf-api.h (CTF_LINK_EMPTY_CU_MAPPINGS): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ECTF_NEEDSBFD): New. + (ECTF_NERR): Adjust. + (ctf_link): Rename share_mode arg to flags. + +2020-07-22 Nick Alcock + + * ctf-api.h (ECTF_INTERNAL): Adjust error text. + (ctf_errwarning_next): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ECTF_FLAGS): New. + (ECTF_NERR): Adjust. + * ctf.h (CTF_F_MAX): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ECTF_NEXT_END): New error. + (ECTF_NEXT_WRONGFUN): Likewise. + (ECTF_NEXT_WRONGFP): Likewise. + (ECTF_NERR): Adjust. + (ctf_next_t): New. + (ctf_next_create): New prototype. + (ctf_next_destroy): Likewise. + (ctf_next_copy): Likewise. + (ctf_member_next): Likewise. + (ctf_enum_next): Likewise. + (ctf_type_next): Likewise. + (ctf_label_next): Likewise. + (ctf_variable_next): Likewise. + +2020-07-22 Nick Alcock + + * ctf-api.h (ctf_ref): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ctf_archive_count): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ctf_member_count): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ctf_type_kind_forwarded): New. + +2020-07-22 Nick Alcock + + * ctf-api.c (ctf_type_name_raw): New. + +2020-07-22 Nick Alcock + + * ctf-api.h (ECTF_*): Improve comments. + (ECTF_NERR): New. + +2020-07-22 Nick Alcock + + * ctf-api.h: Fix typos in comments. + +2020-07-22 H.J. Lu + + PR ld/26262 + PR ld/26267 + * bfdlink.h (bfd_link_info): Add lto_all_symbols_read. + +2020-07-11 H.J. Lu + + * elf/common.h (GNU_PROPERTY_X86_FEATURE_2_TMM): New. + +2020-07-09 John Baldwin + + * elf/common.h (AT_FREEBSD_ARGC, AT_FREEBSD_ARGV, AT_FREEBSD_ENVC) + (AT_FREEBSD_ENVV, AT_FREEBSD_PS_STRINGS): Define. + +2020-07-09 Alan Modra + + * coff/powerpc.h: Delete. + +2020-07-04 Nick Clifton + + Binutils 2.35 branch created. + +2020-06-30 Nelson Chu + + * opcode/riscv-opc.h: Support the unprivileged CSR. The versions + of the unprivileged CSR should be PRIV_SPEC_CLASS_NONE for now. + * opcode/riscv.h (enum riscv_csr_class): Add CSR_CLASS_DEBUG. + +2020-06-30 Nelson Chu + + * opcode/riscv-opc.h: Cleanup and remove the unused macros. + +2020-06-29 Alan Modra + + * coff/internal.h: Use C style comments. + * coff/pe.h: Likewise. + * elf/ppc64.h: Likewise. + +2020-06-26 Nick Alcock + + * ctf-api.h (ctf_arc_bufopen): New. + +2020-06-26 Pat Bernardi + + * elf/m68k.h: Add enum for GNU object attribute with floating point + tag name and values. + +2020-06-25 Nick Clifton + + * libiberty.h (bsearch_r): Remove use of the register keyword from + the prototype. + +2020-06-24 H.J. Lu + + Sync with GCC + 2020-06-23 Nick Alcock + + * libiberty.h (bsearch_r): New. + + 2020-04-17 Martin Liska + Jonathan Yong <10walls@gmail.com> + + PR gcov-profile/94570 + * filenames.h (defined): Do not define HAVE_DOS_BASED_FILE_SYSTEM + for CYGWIN. + +2020-06-22 Alex Coplan + + * opcode/aarch64.h (AARCH64_FEATURE_SHA2): Normalize. + (AARCH64_FEATURE_AES): Likewise. + (AARCH64_FEATURE_V8_4): Likewise. + (AARCH64_FEATURE_SM4): Likewise. + (AARCH64_FEATURE_SHA3): Likewise. + (AARCH64_FEATURE_V8): Likewise. + (AARCH64_FEATURE_V8_2): Likewise. + (AARCH64_FEATURE_V8_3): Likewise. + (AARCH64_FEATURE_FP): Likewise. + (AARCH64_FEATURE_SIMD): Likewise. + (AARCH64_FEATURE_CRC): Likewise. + (AARCH64_FEATURE_LSE): Likewise. + (AARCH64_FEATURE_PAN): Likewise. + (AARCH64_FEATURE_LOR): Likewise. + (AARCH64_FEATURE_RDMA): Likewise. + (AARCH64_FEATURE_V8_1): Likewise. + (AARCH64_FEATURE_F16): Likewise. + (AARCH64_FEATURE_RAS): Likewise. + (AARCH64_FEATURE_PROFILE): Likewise. + (AARCH64_FEATURE_SVE): Likewise. + (AARCH64_FEATURE_RCPC): Likewise. + (AARCH64_FEATURE_COMPNUM): Likewise. + (AARCH64_FEATURE_DOTPROD): Likewise. + (AARCH64_FEATURE_F16_FML): Likewise. + (AARCH64_FEATURE_V8_5): Likewise. + (AARCH64_FEATURE_V8_6): Likewise. + (AARCH64_FEATURE_BFLOAT16): Likewise. + (AARCH64_FEATURE_FLAGMANIP): Likewise. + (AARCH64_FEATURE_FRINTTS): Likewise. + (AARCH64_FEATURE_SB): Likewise. + (AARCH64_FEATURE_PREDRES): Likewise. + (AARCH64_FEATURE_CVADP): Likewise. + (AARCH64_FEATURE_RNG): Likewise. + (AARCH64_FEATURE_BTI): Likewise. + (AARCH64_FEATURE_SCXTNUM): Likewise. + (AARCH64_FEATURE_ID_PFR2): Likewise. + (AARCH64_FEATURE_SSBS): Likewise. + (AARCH64_FEATURE_MEMTAG): Likewise. + (AARCH64_FEATURE_TME): Likewise. + (AARCH64_FEATURE_I8MM): Likewise. + (AARCH64_FEATURE_F32MM): Likewise. + (AARCH64_FEATURE_F64MM): Likewise. + (AARCH64_FEATURE_SVE2): Likewise. + (AARCH64_FEATURE_SVE2_AES): Likewise. + (AARCH64_FEATURE_SVE2_BITPERM): Likewise. + (AARCH64_FEATURE_SVE2_SM4): Likewise. + (AARCH64_FEATURE_SVE2_SHA3): Likewise. + +2020-06-22 Saagar Jha + + * mach-o/loader.h: Add declarations of two new Mach-O load + commands. + +2020-06-22 Nelson Chu + + * opcode/riscv.h (riscv_get_priv_spec_class): Move the function + forward declarations to bfd/elfxx-riscv.h. + (riscv_get_priv_spec_name): Likewise. + +2020-06-15 Max Filippov + + * elf/xtensa.h (xtensa_abi_choice): New declaration. + +2020-06-12 Roland McGrath + + * bfdlink.h (struct bfd_link_info): New field start_stop_visibility. + +2020-06-12 Nelson Chu + + * opcode/riscv-opc.h: Update the defined versions of CSR from + PRIV_SPEC_CLASS_1P9 to PRIV_SPEC_CLASS_1P9P1. Also, drop the + MISA DECLARE_CSR_ALIAS since it's aborted version is v1.9. + * opcode/riscv.h (enum riscv_priv_spec_class): Remove + PRIV_SPEC_CLASS_1P9. + +2020-06-11 Alex Coplan + + * opcode/aarch64.h (aarch64_sys_reg): Add required features to struct + describing system registers. + +2020-06-11 Alan Modra + + * elf/mips.h (Elf32_RegInfo): Use fixed width integer types. + (Elf64_Internal_RegInfo, Elf_Internal_Options): Likewise. + +2020-06-06 Alan Modra + + * elf/ppc64.h (elf_ppc64_reloc_type): Rename + R_PPC64_GOT_TLSGD34 to R_PPC64_GOT_TLSGD_PCREL34, + R_PPC64_GOT_TLSLD34 to R_PPC64_GOT_TLSLD_PCREL34, + R_PPC64_GOT_TPREL34 to R_PPC64_GOT_TPREL_PCREL34, and + R_PPC64_GOT_DTPREL34 to R_PPC64_GOT_DTPREL_PCREL34. + +2020-06-04 Jose E. Marchesi + + * opcode/cgen.h: Get an `endian' argument in both + cgen_get_insn_value and cgen_put_insn_value. + +2020-06-04 Jose E. Marchesi + + * opcode/cgen.h (enum cgen_cpu_open_arg): New value + CGEN_CPU_OPEN_INSN_ENDIAN. + +2020-06-03 Nelson Chu + + * opcode/riscv.h: Remove #include "bfd.h". And change the return + types of riscv_get_isa_spec_class and riscv_get_priv_spec_class + from bfd_boolean to int. + +2020-05-28 Alan Modra + + PR 26044 + * opcode/tilepro.h (TILEPRO_NUM_PIPELINE_ENCODINGS): Move to + tilepro_pipeline enum. + +2020-05-27 H.J. Lu + + PR ld/22909 + * bfdlink.h (textrel_check_method): New enum. + (bfd_link_textrel_check): New. + (bfd_link_info): Replace warn_shared_textrel and error_textrel + with textrel_check. + +2020-05-25 H.J. Lu + + * elf/common.h: Update comments for ET_EXEC and ET_DYN. + +2020-05-20 Nelson Chu + + * opcode/riscv.h: Include "bfd.h" to support bfd_boolean. + (enum riscv_isa_spec_class): New enum class. All supported ISA spec + belong to one of the class + (struct riscv_ext_version): New structure holds version information + for the specific ISA. + * opcode/riscv-opc.h (DECLARE_CSR): There are two version information, + define_version and abort_version. The define_version means which + privilege spec is started to define the CSR, and the abort_version + means which privilege spec is started to abort the CSR. If the CSR is + valid for the newest spec, then the abort_version should be + PRIV_SPEC_CLASS_DRAFT. + (DECLARE_CSR_ALIAS): Same as DECLARE_CSR, but only for the obselete CSR. + * opcode/riscv.h (enum riscv_priv_spec_class): New enum class. Define + the current supported privilege spec versions. + (struct riscv_csr_extra): Add new fields to store more information + about the CSR. We use these information to find the suitable CSR + address when user choosing a specific privilege spec. + +2020-05-19 Alexander Fedotov + + PR 25992 + * opcode/arm.h (ARM_EXT2_V8R): Define. Modified ARM_AEXT2_V8R. + +2020-05-11 Alan Modra + + * opcode/ppc.h (PPC_OPERAND_ACC): Define. Renumber following + PPC_OPERAND defines. + +2020-05-11 Alan Modra + + * elf/ppc64.h: Update comment. + * opcode/ppc.h (PPC_OPCODE_POWER10): Rename from PPC_OPCODE_POWERXX. + +2020-04-30 Alex Coplan + + * opcode/aarch64.h (enum aarch64_opnd): Add + AARCH64_OPND_UNDEFINED. + +2020-04-23 Anton Kolesov + + * elf/common.h (NT_ARC_V2): New macro definitions. + +2020-04-22 Max Filippov + + PR ld/25861 + * elf/xtensa.h (elf_xtensa_reloc_type): New entries for + R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}. + +2020-04-21 Alan Modra + + * elf/sh.h (STO_SH5_ISA32, SHF_SH5_ISA32, SHF_SH5_ISA32_MIXED), + (SHT_SH5_CR_SORTED, STT_DATALABEL): Delete. + +2020-04-10 Fangrui Song + + PR binutils/24613 + * bfdlink.h (enum report_method): Delete RM_GENERATE_WARNING and + RM_GENERATE_ERROR. Add RM_DIAGNOSE. + (struct bfd_link_info): Add warn_unresolved_syms. + +2020-04-14 Stephen Casner + + PR ld/25677 + * aout/aout64.h (N_DATADDR): Add IMAGIC case. + +2020-04-02 Jan W. Jagersma + + * coff/go32exe.h: Remove file. + * coff/internal.h (struct internal_filehdr): Remove field + go32stub. Remove flag F_GO32STUB. + +2020-04-01 Martin Liska + Maciej W. Rozycki + + PR lto/94249 + * plugin-api.h: Fix a typo. + +2020-03-30 Nelson Chu + + * opcode/riscv-opc.h: Update CSR to 1.11. + +2020-03-26 John Baldwin + + * elf/common.h (AT_FREEBSD_BSDFLAGS): Define. + +2020-03-24 Martin Liska + + PR lto/94249 + * plugin-api.h: Add more robust endianess detection. + +2020-03-21 Martin Liska + + * plugin-api.h (enum ld_plugin_symbol_type): Remove + comma after last value of an enum. + * lto-symtab.h (enum gcc_plugin_symbol_type): Likewise. + +2020-03-19 Martin Liska + + * lto-symtab.h (enum gcc_plugin_symbol_type): New. + (enum gcc_plugin_symbol_section_kind): Likewise. + +2020-03-19 Martin Liska + + * plugin-api.h (struct ld_plugin_symbol): Split + int def into 4 char fields. + (enum ld_plugin_symbol_type): New. + (enum ld_plugin_symbol_section_kind): New. + (enum ld_plugin_tag): Add LDPT_ADD_SYMBOLS_V2. + +2020-03-13 Kamil Rytarowski + + * elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define. + +2020-03-13 Kamil Rytarowski + + * elf/common.h (NT_NETBSDCORE_AUXV): New define. + +2020-03-13 Christophe Lyon + + * bfdlink.h (bfd_link_info): Add non_contiguous_regions and + non_contiguous_regions_warnings fields. + +2020-03-13 Christian Eggers + + * bfdlink.h (struct bfd_link_order): Add unit (bytes/octets) to + offset and size members. + * elf/internal.h (struct elf_internal_phdr): Likewise for + p_align member. + (struct elf_segment_map): Likewise for p_paddr and p_size + members + +2020-03-13 Christian Eggers + + * elf/internal.h (struct elf_internal_phdr): Add unit (octets) + to several member field comments. + (Elf_Internal_Shdr): likewise. + +2020-03-10 Alan Modra + + * som/aout.h (SOM_AUX_ID_MANDATORY, SOM_SPACE_IS_LOADABLE), + (SOM_SYMBOL_HIDDEN, SOM_SYMBOL_HAS_LONG_RETURN): Use 1u << 31. + * som/lst.h (LST_SYMBOL_HIDDEN): Likewise. + +2020-03-03 Luis Machado + + * elf/common.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY) + (AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE) + (AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY) + (AT_MINSIGSTKSZ): New defines, imported from glibc. + +2020-02-25 Andrew Burgess + + Import from gcc mainline: + 2020-02-05 Andrew Burgess + + * hashtab.h (htab_remove_elt): Make a parameter const. + (htab_remove_elt_with_hash): Likewise. + +2020-02-20 Nelson Chu + + * opcode/riscv-opc.h: Extend DECLARE_CSR and DECLARE_CSR_ALIAS to + record riscv_csr_class. + +2020-02-10 Stam Markianos-Wright + Matthew Malcomson + + * opcode/arm.h (ARM_EXT2_CDE): New extension macro. + (ARM_EXT2_CDE0): New extension macro. + (ARM_EXT2_CDE1): New extension macro. + (ARM_EXT2_CDE2): New extension macro. + (ARM_EXT2_CDE3): New extension macro. + (ARM_EXT2_CDE4): New extension macro. + (ARM_EXT2_CDE5): New extension macro. + (ARM_EXT2_CDE6): New extension macro. + (ARM_EXT2_CDE7): New extension macro. + +2020-02-07 Sergey Belyashov + + PR 25469 + * coff/internal.h (R_IMM16BE): Define. + * elf/z80.h (EF_Z80_MACH_Z80N): Define. + (R_Z80_16_BE): New reloc. + +2020-02-04 Alan Modra + + * opcode/d30v.h (struct pd_reg): Make value field unsigned. + +2020-01-16 Jon Turney + + * coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE) + (PE_IMAGE_DEBUG_TYPE_POGO, PE_IMAGE_DEBUG_TYPE_ILTCG) + (PE_IMAGE_DEBUG_TYPE_MPX, PE_IMAGE_DEBUG_TYPE_REPRO): Add. + +2020-01-18 Nick Clifton + + Binutils 2.34 branch created. + +2020-01-17 Nick Clifton + + * Import from gcc mainline: + 2019-06-10 Martin Liska + + * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): New macro. + * libiberty.h (xmalloc): Use it. + (xrealloc): Likewise. + (xcalloc): Likewise. + (xstrdup): Likewise. + (xstrndup): Likewise. + (xmemdup): Likewise. + + 2019-06-10 Martin Liska + + * ansidecl.h: + (ATTRIBUTE_RESULT_SIZE_1): Define new macro. + (ATTRIBUTE_RESULT_SIZE_2): Likewise. + (ATTRIBUTE_RESULT_SIZE_1_2): Likewise. + * libiberty.h (xmalloc): Add RESULT_SIZE attribute. + (xrealloc): Likewise. + (xcalloc): Likewise. + + 2019-11-16 Tim Ruehsen + + * demangle.h (struct demangle_component): Add member + d_counting. + + 2019-11-16 Eduard-Mihai Burtescu + + * demangle.h (rust_demangle_callback): Add. + + 2019-07-18 Eduard-Mihai Burtescu + + * demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h. + (rust_demangle_sym): Move to libiberty/rust-demangle.h. + +2020-01-16 Andre Vieira + + PR 25376 + * opcodes/arm.h (FPU_MVE, FPU_MVE_FPU): Move these features to... + (ARM_EXT2_MVE, ARM_EXT2_MVE_FP): ... the CORE_HIGH space. + (ARM_ANY): Redefine to not include any MVE bits. + (ARM_FEATURE_ALL): Removed. + +2020-01-15 Jozef Lawrynowicz + + * opcode/msp430.h (enum msp430_expp_e): New. + (struct msp430_operand_s): Add expp member to struct. + +2020-01-13 Claudiu Zissulescu + + * elf/arc-cpu.def: Update ARC cpu list. + +2020-01-13 Alan Modra + + * opcode/tic4x.h (EXTR): Delete. + (EXTRU, EXTRS, INSERTU, INSERTS): Rewrite without zero/sign + extension using shifts. Do trim INSERTU value to specified bitfield. + +2020-01-10 Alan Modra + + * opcode/spu.h: Formatting. + (UNSIGNED_EXTRACT): Use 1u. + (SIGNED_EXTRACT): Don't sign extend with shifts. + (DECODE_INSN_I9a, DECODE_INSN_I9b): Avoid left shift of signed value. + Keep result signed. + (DECODE_INSN_U9a, DECODE_INSN_U9b): Delete. + +2020-01-07 Shahab Vahedi + + * opcode/arc.h (insn_class_t): Add 'LLOCK' and 'SCOND'. + +2020-01-02 Sergey Belyashov + + * coff/internal.h: Add defintions of Z80 reloc names. + +2020-01-02 Christian Biesinger + + * opcode/s12z.h: Undef REG_Y. + +2020-01-01 Alan Modra + + Update year range in copyright notice of all files. + +For older changes see ChangeLog-2019 + +Copyright (C) 2020 Free Software Foundation, Inc. + +Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. + +Local Variables: +mode: change-log +left-margin: 8 +fill-column: 74 +version-control: never +End: diff -Nru libiberty-20201110/include/coff/alpha.h libiberty-20210106/include/coff/alpha.h --- libiberty-20201110/include/coff/alpha.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/alpha.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* ECOFF support on Alpha machines. coff/ecoff.h must be included before this file. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/arm.h libiberty-20210106/include/coff/arm.h --- libiberty-20201110/include/coff/arm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/arm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARM COFF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/ecoff.h libiberty-20210106/include/coff/ecoff.h --- libiberty-20201110/include/coff/ecoff.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/ecoff.h 2021-01-04 12:43:12.000000000 +0000 @@ -2,7 +2,7 @@ This does not include symbol information, found in sym.h and symconst.h. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/external.h libiberty-20210106/include/coff/external.h --- libiberty-20201110/include/coff/external.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/external.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* external.h -- External COFF structures - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/i386.h libiberty-20210106/include/coff/i386.h --- libiberty-20201110/include/coff/i386.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/i386.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* coff information for Intel 386/486. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/ia64.h libiberty-20210106/include/coff/ia64.h --- libiberty-20201110/include/coff/ia64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/ia64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* coff information for HP/Intel IA-64. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/internal.h libiberty-20210106/include/coff/internal.h --- libiberty-20201110/include/coff/internal.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/coff/internal.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* Internal format of COFF object file data structures, for GNU BFD. This file is part of BFD, the Binary File Descriptor library. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -377,7 +377,7 @@ #define C_THUMBEXTFUNC (C_THUMBEXT + 20) /* 150 */ #define C_THUMBSTATFUNC (C_THUMBSTAT + 20) /* 151 */ -/* True if XCOFF symbols of class CLASS have auxillary csect information. */ +/* True if XCOFF symbols of class CLASS have auxiliary csect information. */ #define CSECT_SYM_P(CLASS) \ ((CLASS) == C_EXT || (CLASS) == C_AIX_WEAKEXT || (CLASS) == C_HIDEXT) diff -Nru libiberty-20201110/include/coff/mcore.h libiberty-20210106/include/coff/mcore.h --- libiberty-20201110/include/coff/mcore.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/mcore.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Motorola MCore support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/mips.h libiberty-20210106/include/coff/mips.h --- libiberty-20201110/include/coff/mips.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/mips.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* ECOFF support on MIPS machines. coff/ecoff.h must be included before this file. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/msdos.h libiberty-20210106/include/coff/msdos.h --- libiberty-20201110/include/coff/msdos.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/msdos.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* msdos.h - MS-DOS and derived executable header information - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/pe.h libiberty-20210106/include/coff/pe.h --- libiberty-20201110/include/coff/pe.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/coff/pe.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* pe.h - PE COFF header information - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/rs6000.h libiberty-20210106/include/coff/rs6000.h --- libiberty-20201110/include/coff/rs6000.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/rs6000.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IBM RS/6000 "XCOFF" file definitions for BFD. - Copyright (C) 1990-2020 Free Software Foundation, Inc. + Copyright (C) 1990-2021 Free Software Foundation, Inc. Written by Mimi Phuong-Thao Vo of IBM and John Gilmore of Cygnus Support. diff -Nru libiberty-20201110/include/coff/rs6k64.h libiberty-20210106/include/coff/rs6k64.h --- libiberty-20201110/include/coff/rs6k64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/rs6k64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IBM RS/6000 "XCOFF64" file definitions for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/sh.h libiberty-20210106/include/coff/sh.h --- libiberty-20201110/include/coff/sh.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/sh.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* coff information for Renesas SH - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/sym.h libiberty-20210106/include/coff/sym.h --- libiberty-20201110/include/coff/sym.h 2016-02-26 15:58:08.000000000 +0000 +++ libiberty-20210106/include/coff/sym.h 2021-01-04 12:43:12.000000000 +0000 @@ -76,8 +76,8 @@ bfd_vma cbSymOffset; /* offset to start of local symbols*/ long ioptMax; /* max index into optimization symbol entries */ bfd_vma cbOptOffset; /* offset to optimization symbol entries */ - long iauxMax; /* number of auxillary symbol entries */ - bfd_vma cbAuxOffset; /* offset to start of auxillary symbol entries*/ + long iauxMax; /* number of auxiliary symbol entries */ + bfd_vma cbAuxOffset; /* offset to start of auxiliary symbol entries*/ long issMax; /* max index into local strings */ bfd_vma cbSsOffset; /* offset to start of local strings */ long issExtMax; /* max index into external strings */ diff -Nru libiberty-20201110/include/coff/tic30.h libiberty-20210106/include/coff/tic30.h --- libiberty-20201110/include/coff/tic30.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/tic30.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* coff information for Texas Instruments TMS320C3X - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/tic4x.h libiberty-20210106/include/coff/tic4x.h --- libiberty-20201110/include/coff/tic4x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/tic4x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* TI COFF information for Texas Instruments TMS320C4X/C3X. This file customizes the settings in coff/ti.h. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/tic54x.h libiberty-20210106/include/coff/tic54x.h --- libiberty-20201110/include/coff/tic54x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/tic54x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* TI COFF information for Texas Instruments TMS320C54X. This file customizes the settings in coff/ti.h. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/ti.h libiberty-20210106/include/coff/ti.h --- libiberty-20201110/include/coff/ti.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/ti.h 2021-01-04 12:43:12.000000000 +0000 @@ -2,7 +2,7 @@ customized in a target-specific file, and then this file included (see tic54x.h for an example). - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/coff/x86_64.h libiberty-20210106/include/coff/x86_64.h --- libiberty-20201110/include/coff/x86_64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/x86_64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* COFF information for AMD 64. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/xcoff.h libiberty-20210106/include/coff/xcoff.h --- libiberty-20201110/include/coff/xcoff.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/xcoff.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Internal format of XCOFF object file data structures for BFD. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor , Cygnus Support. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/coff/z80.h libiberty-20210106/include/coff/z80.h --- libiberty-20201110/include/coff/z80.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/z80.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* coff information for Zilog Z80 - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Contributed by Arnold Metselaar This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/coff/z8k.h libiberty-20210106/include/coff/z8k.h --- libiberty-20201110/include/coff/z8k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/coff/z8k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* coff information for Zilog Z800N - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/ctf-api.h libiberty-20210106/include/ctf-api.h --- libiberty-20201110/include/ctf-api.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/ctf-api.h 2021-01-06 10:26:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Public API to libctf. - Copyright (C) 2019-2020 Free Software Foundation, Inc. + Copyright (C) 2019-2021 Free Software Foundation, Inc. This file is part of libctf. @@ -34,13 +34,13 @@ #endif /* Clients can open one or more CTF containers and obtain a pointer to an - opaque ctf_file_t. Types are identified by an opaque ctf_id_t token. + opaque ctf_dict_t. Types are identified by an opaque ctf_id_t token. They can also open or create read-only archives of CTF containers in a ctf_archive_t. These opaque definitions allow libctf to evolve without breaking clients. */ -typedef struct ctf_file ctf_file_t; +typedef struct ctf_dict ctf_dict_t; typedef struct ctf_archive_internal ctf_archive_t; typedef unsigned long ctf_id_t; @@ -51,10 +51,12 @@ /* If the debugger needs to provide the CTF library with a set of raw buffers for use as the CTF data, symbol table, and string table, it can do so by - filling in ctf_sect_t structures and passing them to ctf_bufopen(). + filling in ctf_sect_t structures and passing them to ctf_bufopen. - The contents of this structure must always be in native endianness (no - byteswapping is performed). */ + The contents of this structure must always be in native endianness. At read + time, the symbol table endianness is derived from the BFD target (if BFD is + in use): if a BFD target is not in use, please call ctf_symsect_endianness or + ctf_arc_symsect_endianness. */ typedef struct ctf_sect { @@ -65,14 +67,20 @@ } ctf_sect_t; /* A minimal symbol extracted from a linker's internal symbol table - representation. */ + representation. The symbol name can be given either via st_name or via a + strtab offset in st_nameidx, which corresponds to one of the string offsets + communicated via the ctf_link_add_strtab callback. */ typedef struct ctf_link_sym { - /* The st_name will not be accessed outside the call to - ctf_link_shuffle_syms(). */ + /* The st_name and st_nameidx will not be accessed outside the call to + ctf_link_shuffle_syms. If you set st_nameidx to offset zero, make sure + to set st_nameidx_set as well. */ const char *st_name; + size_t st_nameidx; + int st_nameidx_set; + uint32_t st_symidx; uint32_t st_shndx; uint32_t st_type; uint32_t st_value; @@ -103,14 +111,16 @@ CTF_SECT_HEADER, CTF_SECT_LABEL, CTF_SECT_OBJT, + CTF_SECT_OBJTIDX = CTF_SECT_OBJT, CTF_SECT_FUNC, + CTF_SECT_FUNCIDX = CTF_SECT_FUNC, CTF_SECT_VAR, CTF_SECT_TYPE, CTF_SECT_STR } ctf_sect_names_t; /* Encoding information for integers, floating-point values, and certain other - intrinsics can be obtained by calling ctf_type_encoding(), below. The flags + intrinsics can be obtained by calling ctf_type_encoding, below. The flags field will contain values appropriate for the type defined in . */ typedef struct ctf_encoding @@ -154,8 +164,8 @@ #define CTF_FUNC_VARARG 0x1 /* Function arguments end with varargs. */ /* Functions that return a ctf_id_t use the following value to indicate failure. - ctf_errno() can be used to obtain an error code. Functions that return - a straight integral -1 also use ctf_errno(). */ + ctf_errno can be used to obtain an error code. Functions that return + a straight integral -1 also use ctf_errno. */ #define CTF_ERR ((ctf_id_t) -1L) /* This macro holds information about all the available ctf errors. @@ -220,7 +230,8 @@ _CTF_ITEM (ECTF_NEXT_WRONGFUN, "Wrong iteration function called.") \ _CTF_ITEM (ECTF_NEXT_WRONGFP, "Iteration entity changed in mid-iterate.") \ _CTF_ITEM (ECTF_FLAGS, "CTF header contains flags unknown to libctf.") \ - _CTF_ITEM (ECTF_NEEDSBFD, "This feature needs a libctf with BFD support.") + _CTF_ITEM (ECTF_NEEDSBFD, "This feature needs a libctf with BFD support.") \ + _CTF_ITEM (ECTF_INCOMPLETE, "Type is not a complete type.") #define ECTF_BASE 1000 /* Base value for libctf errnos. */ @@ -233,10 +244,10 @@ #undef _CTF_FIRST }; -#define ECTF_NERR (ECTF_NEEDSBFD - ECTF_BASE + 1) /* Count of CTF errors. */ +#define ECTF_NERR (ECTF_INCOMPLETE - ECTF_BASE + 1) /* Count of CTF errors. */ /* The CTF data model is inferred to be the caller's data model or the data - model of the given object, unless ctf_setmodel() is explicitly called. */ + model of the given object, unless ctf_setmodel is explicitly called. */ #define CTF_MODEL_ILP32 1 /* Object data model is ILP32. */ #define CTF_MODEL_LP64 2 /* Object data model is LP64. */ #ifdef _LP64 @@ -245,7 +256,7 @@ # define CTF_MODEL_NATIVE CTF_MODEL_ILP32 #endif -/* Dynamic CTF containers can be created using ctf_create(). The ctf_add_* +/* Dynamic CTF containers can be created using ctf_create. The ctf_add_* routines can be used to add new definitions to the dynamic container. New types are labeled as root or non-root to determine whether they are visible at the top-level program scope when subsequently doing a lookup. */ @@ -253,6 +264,10 @@ #define CTF_ADD_NONROOT 0 /* Type only visible in nested scope. */ #define CTF_ADD_ROOT 1 /* Type visible at top-level scope. */ +/* Flags for ctf_member_next. */ + +#define CTF_MN_RECURSE 0x1 /* Recurse into unnamed members. */ + /* These typedefs are used to define the signature for callback functions that can be used with the iteration and visit functions below. There is also a family of iteration functions that do not require callbacks. */ @@ -267,7 +282,7 @@ typedef int ctf_type_all_f (ctf_id_t type, int flag, void *arg); typedef int ctf_label_f (const char *name, const ctf_lblinfo_t *info, void *arg); -typedef int ctf_archive_member_f (ctf_file_t *fp, const char *name, void *arg); +typedef int ctf_archive_member_f (ctf_dict_t *fp, const char *name, void *arg); typedef int ctf_archive_raw_member_f (const char *name, const void *content, size_t len, void *arg); typedef char *ctf_dump_decorate_f (ctf_sect_names_t sect, @@ -275,9 +290,9 @@ typedef struct ctf_dump_state ctf_dump_state_t; -/* Iteration state for the _next() functions, and allocators/copiers/freers for +/* Iteration state for the _next functions, and allocators/copiers/freers for it. (None of these are needed for the simple case of iterating to the end: - the _next() function allocate and free the iterators for you.) */ + the _next function allocate and free the iterators for you.) */ typedef struct ctf_next ctf_next_t; extern ctf_next_t *ctf_next_create (void); @@ -287,7 +302,7 @@ /* Opening. These mostly return an abstraction over both CTF files and CTF archives: so they can be used to open both. CTF files will appear to be an archive with one member named '.ctf'. The low-level functions - ctf_simple_open() and ctf_bufopen() return ctf_file_t's directly, and cannot + ctf_simple_open and ctf_bufopen return ctf_dict_t's directly, and cannot be used on CTF archives. */ extern ctf_archive_t *ctf_bfdopen (struct bfd *, int *); @@ -298,114 +313,125 @@ extern ctf_archive_t *ctf_open (const char *filename, const char *target, int *errp); extern void ctf_close (ctf_archive_t *); -extern ctf_sect_t ctf_getdatasect (const ctf_file_t *); -extern ctf_archive_t *ctf_get_arc (const ctf_file_t *); +extern ctf_sect_t ctf_getdatasect (const ctf_dict_t *); +extern ctf_sect_t ctf_getsymsect (const ctf_dict_t *); +extern ctf_sect_t ctf_getstrsect (const ctf_dict_t *); +extern void ctf_symsect_endianness (ctf_dict_t *, int little_endian); +extern ctf_archive_t *ctf_get_arc (const ctf_dict_t *); extern ctf_archive_t *ctf_arc_open (const char *, int *); extern ctf_archive_t *ctf_arc_bufopen (const ctf_sect_t *, const ctf_sect_t *, const ctf_sect_t *, int *); +extern void ctf_arc_symsect_endianness (ctf_archive_t *, int little_endian); extern void ctf_arc_close (ctf_archive_t *); -extern ctf_file_t *ctf_arc_open_by_name (const ctf_archive_t *, - const char *, int *); -extern ctf_file_t *ctf_arc_open_by_name_sections (const ctf_archive_t *, - const ctf_sect_t *, - const ctf_sect_t *, - const char *, int *); +extern ctf_dict_t *ctf_arc_lookup_symbol (ctf_archive_t *, + unsigned long symidx, + ctf_id_t *, int *errp); +extern void ctf_arc_flush_caches (ctf_archive_t *); +extern ctf_dict_t *ctf_dict_open (const ctf_archive_t *, + const char *, int *); +extern ctf_dict_t *ctf_dict_open_sections (const ctf_archive_t *, + const ctf_sect_t *, + const ctf_sect_t *, + const char *, int *); extern size_t ctf_archive_count (const ctf_archive_t *); /* The next functions return or close real CTF files, or write out CTF archives, not opaque containers around either. */ -extern ctf_file_t *ctf_simple_open (const char *, size_t, const char *, size_t, +extern ctf_dict_t *ctf_simple_open (const char *, size_t, const char *, size_t, size_t, const char *, size_t, int *); -extern ctf_file_t *ctf_bufopen (const ctf_sect_t *, const ctf_sect_t *, +extern ctf_dict_t *ctf_bufopen (const ctf_sect_t *, const ctf_sect_t *, const ctf_sect_t *, int *); -extern void ctf_ref (ctf_file_t *); -extern void ctf_file_close (ctf_file_t *); +extern void ctf_ref (ctf_dict_t *); +extern void ctf_dict_close (ctf_dict_t *); -extern int ctf_arc_write (const char *, ctf_file_t **, size_t, +extern int ctf_arc_write (const char *, ctf_dict_t **, size_t, const char **, size_t); -extern int ctf_arc_write_fd (int, ctf_file_t **, size_t, const char **, +extern int ctf_arc_write_fd (int, ctf_dict_t **, size_t, const char **, size_t); -extern const char *ctf_cuname (ctf_file_t *); -extern int ctf_cuname_set (ctf_file_t *, const char *); -extern ctf_file_t *ctf_parent_file (ctf_file_t *); -extern const char *ctf_parent_name (ctf_file_t *); -extern int ctf_parent_name_set (ctf_file_t *, const char *); -extern int ctf_type_isparent (ctf_file_t *, ctf_id_t); -extern int ctf_type_ischild (ctf_file_t *, ctf_id_t); - -extern int ctf_import (ctf_file_t *, ctf_file_t *); -extern int ctf_setmodel (ctf_file_t *, int); -extern int ctf_getmodel (ctf_file_t *); +extern const char *ctf_cuname (ctf_dict_t *); +extern int ctf_cuname_set (ctf_dict_t *, const char *); +extern ctf_dict_t *ctf_parent_dict (ctf_dict_t *); +extern const char *ctf_parent_name (ctf_dict_t *); +extern int ctf_parent_name_set (ctf_dict_t *, const char *); +extern int ctf_type_isparent (ctf_dict_t *, ctf_id_t); +extern int ctf_type_ischild (ctf_dict_t *, ctf_id_t); + +extern int ctf_import (ctf_dict_t *, ctf_dict_t *); +extern int ctf_setmodel (ctf_dict_t *, int); +extern int ctf_getmodel (ctf_dict_t *); -extern void ctf_setspecific (ctf_file_t *, void *); -extern void *ctf_getspecific (ctf_file_t *); +extern void ctf_setspecific (ctf_dict_t *, void *); +extern void *ctf_getspecific (ctf_dict_t *); -extern int ctf_errno (ctf_file_t *); +extern int ctf_errno (ctf_dict_t *); extern const char *ctf_errmsg (int); extern int ctf_version (int); -extern int ctf_func_info (ctf_file_t *, unsigned long, ctf_funcinfo_t *); -extern int ctf_func_args (ctf_file_t *, unsigned long, uint32_t, ctf_id_t *); -extern int ctf_func_type_info (ctf_file_t *, ctf_id_t, ctf_funcinfo_t *); -extern int ctf_func_type_args (ctf_file_t *, ctf_id_t, uint32_t, ctf_id_t *); - -extern ctf_id_t ctf_lookup_by_name (ctf_file_t *, const char *); -extern ctf_id_t ctf_lookup_by_symbol (ctf_file_t *, unsigned long); -extern ctf_id_t ctf_lookup_variable (ctf_file_t *, const char *); - -extern ctf_id_t ctf_type_resolve (ctf_file_t *, ctf_id_t); -extern char *ctf_type_aname (ctf_file_t *, ctf_id_t); -extern char *ctf_type_aname_raw (ctf_file_t *, ctf_id_t); -extern ssize_t ctf_type_lname (ctf_file_t *, ctf_id_t, char *, size_t); -extern char *ctf_type_name (ctf_file_t *, ctf_id_t, char *, size_t); -extern const char *ctf_type_name_raw (ctf_file_t *, ctf_id_t); -extern ssize_t ctf_type_size (ctf_file_t *, ctf_id_t); -extern ssize_t ctf_type_align (ctf_file_t *, ctf_id_t); -extern int ctf_type_kind (ctf_file_t *, ctf_id_t); -extern int ctf_type_kind_forwarded (ctf_file_t *, ctf_id_t); -extern ctf_id_t ctf_type_reference (ctf_file_t *, ctf_id_t); -extern ctf_id_t ctf_type_pointer (ctf_file_t *, ctf_id_t); -extern int ctf_type_encoding (ctf_file_t *, ctf_id_t, ctf_encoding_t *); -extern int ctf_type_visit (ctf_file_t *, ctf_id_t, ctf_visit_f *, void *); -extern int ctf_type_cmp (ctf_file_t *, ctf_id_t, ctf_file_t *, ctf_id_t); -extern int ctf_type_compat (ctf_file_t *, ctf_id_t, ctf_file_t *, ctf_id_t); +extern int ctf_func_info (ctf_dict_t *, unsigned long, ctf_funcinfo_t *); +extern int ctf_func_args (ctf_dict_t *, unsigned long, uint32_t, ctf_id_t *); +extern int ctf_func_type_info (ctf_dict_t *, ctf_id_t, ctf_funcinfo_t *); +extern int ctf_func_type_args (ctf_dict_t *, ctf_id_t, uint32_t, ctf_id_t *); + +extern ctf_id_t ctf_lookup_by_name (ctf_dict_t *, const char *); +extern ctf_id_t ctf_lookup_by_symbol (ctf_dict_t *, unsigned long); +extern ctf_id_t ctf_symbol_next (ctf_dict_t *, ctf_next_t **, + const char **name, int functions); +extern ctf_id_t ctf_lookup_variable (ctf_dict_t *, const char *); + +extern ctf_id_t ctf_type_resolve (ctf_dict_t *, ctf_id_t); +extern char *ctf_type_aname (ctf_dict_t *, ctf_id_t); +extern char *ctf_type_aname_raw (ctf_dict_t *, ctf_id_t); +extern ssize_t ctf_type_lname (ctf_dict_t *, ctf_id_t, char *, size_t); +extern char *ctf_type_name (ctf_dict_t *, ctf_id_t, char *, size_t); +extern const char *ctf_type_name_raw (ctf_dict_t *, ctf_id_t); +extern ssize_t ctf_type_size (ctf_dict_t *, ctf_id_t); +extern ssize_t ctf_type_align (ctf_dict_t *, ctf_id_t); +extern int ctf_type_kind (ctf_dict_t *, ctf_id_t); +extern int ctf_type_kind_forwarded (ctf_dict_t *, ctf_id_t); +extern ctf_id_t ctf_type_reference (ctf_dict_t *, ctf_id_t); +extern ctf_id_t ctf_type_pointer (ctf_dict_t *, ctf_id_t); +extern int ctf_type_encoding (ctf_dict_t *, ctf_id_t, ctf_encoding_t *); +extern int ctf_type_visit (ctf_dict_t *, ctf_id_t, ctf_visit_f *, void *); +extern int ctf_type_cmp (ctf_dict_t *, ctf_id_t, ctf_dict_t *, ctf_id_t); +extern int ctf_type_compat (ctf_dict_t *, ctf_id_t, ctf_dict_t *, ctf_id_t); -extern int ctf_member_info (ctf_file_t *, ctf_id_t, const char *, +extern int ctf_member_info (ctf_dict_t *, ctf_id_t, const char *, ctf_membinfo_t *); -extern int ctf_array_info (ctf_file_t *, ctf_id_t, ctf_arinfo_t *); +extern int ctf_array_info (ctf_dict_t *, ctf_id_t, ctf_arinfo_t *); -extern const char *ctf_enum_name (ctf_file_t *, ctf_id_t, int); -extern int ctf_enum_value (ctf_file_t *, ctf_id_t, const char *, int *); +extern const char *ctf_enum_name (ctf_dict_t *, ctf_id_t, int); +extern int ctf_enum_value (ctf_dict_t *, ctf_id_t, const char *, int *); -extern void ctf_label_set (ctf_file_t *, const char *); -extern const char *ctf_label_get (ctf_file_t *); +extern void ctf_label_set (ctf_dict_t *, const char *); +extern const char *ctf_label_get (ctf_dict_t *); -extern const char *ctf_label_topmost (ctf_file_t *); -extern int ctf_label_info (ctf_file_t *, const char *, ctf_lblinfo_t *); - -extern int ctf_member_count (ctf_file_t *, ctf_id_t); -extern int ctf_member_iter (ctf_file_t *, ctf_id_t, ctf_member_f *, void *); -extern ssize_t ctf_member_next (ctf_file_t *, ctf_id_t, ctf_next_t **, - const char **name, ctf_id_t *membtype); -extern int ctf_enum_iter (ctf_file_t *, ctf_id_t, ctf_enum_f *, void *); -extern const char *ctf_enum_next (ctf_file_t *, ctf_id_t, ctf_next_t **, +extern const char *ctf_label_topmost (ctf_dict_t *); +extern int ctf_label_info (ctf_dict_t *, const char *, ctf_lblinfo_t *); + +extern int ctf_member_count (ctf_dict_t *, ctf_id_t); +extern int ctf_member_iter (ctf_dict_t *, ctf_id_t, ctf_member_f *, void *); +extern ssize_t ctf_member_next (ctf_dict_t *, ctf_id_t, ctf_next_t **, + const char **name, ctf_id_t *membtype, + int flags); +extern int ctf_enum_iter (ctf_dict_t *, ctf_id_t, ctf_enum_f *, void *); +extern const char *ctf_enum_next (ctf_dict_t *, ctf_id_t, ctf_next_t **, int *); -extern int ctf_type_iter (ctf_file_t *, ctf_type_f *, void *); -extern int ctf_type_iter_all (ctf_file_t *, ctf_type_all_f *, void *); -extern ctf_id_t ctf_type_next (ctf_file_t *, ctf_next_t **, +extern int ctf_type_iter (ctf_dict_t *, ctf_type_f *, void *); +extern int ctf_type_iter_all (ctf_dict_t *, ctf_type_all_f *, void *); +extern ctf_id_t ctf_type_next (ctf_dict_t *, ctf_next_t **, int *flag, int want_hidden); -extern int ctf_label_iter (ctf_file_t *, ctf_label_f *, void *); -extern int ctf_label_next (ctf_file_t *, ctf_next_t **, const char **); /* TBD */ -extern int ctf_variable_iter (ctf_file_t *, ctf_variable_f *, void *); -extern ctf_id_t ctf_variable_next (ctf_file_t *, ctf_next_t **, +extern int ctf_label_iter (ctf_dict_t *, ctf_label_f *, void *); +extern int ctf_label_next (ctf_dict_t *, ctf_next_t **, const char **); /* TBD */ +extern int ctf_variable_iter (ctf_dict_t *, ctf_variable_f *, void *); +extern ctf_id_t ctf_variable_next (ctf_dict_t *, ctf_next_t **, const char **); extern int ctf_archive_iter (const ctf_archive_t *, ctf_archive_member_f *, void *); -extern ctf_file_t *ctf_archive_next (const ctf_archive_t *, ctf_next_t **, +extern ctf_dict_t *ctf_archive_next (const ctf_archive_t *, ctf_next_t **, const char **, int skip_parent, int *errp); /* This function alone does not currently operate on CTF files masquerading @@ -414,97 +440,111 @@ to deal with non-archives at all. */ extern int ctf_archive_raw_iter (const ctf_archive_t *, ctf_archive_raw_member_f *, void *); -extern char *ctf_dump (ctf_file_t *, ctf_dump_state_t **state, +extern char *ctf_dump (ctf_dict_t *, ctf_dump_state_t **state, ctf_sect_names_t sect, ctf_dump_decorate_f *, void *arg); /* Error-warning reporting: an 'iterator' that returns errors and warnings from the error/warning list, in order of emission. Errors and warnings are popped after return: the caller must free the returned error-text pointer. */ -extern char *ctf_errwarning_next (ctf_file_t *, ctf_next_t **, +extern char *ctf_errwarning_next (ctf_dict_t *, ctf_next_t **, int *is_warning, int *errp); -extern ctf_id_t ctf_add_array (ctf_file_t *, uint32_t, +extern ctf_id_t ctf_add_array (ctf_dict_t *, uint32_t, const ctf_arinfo_t *); -extern ctf_id_t ctf_add_const (ctf_file_t *, uint32_t, ctf_id_t); -extern ctf_id_t ctf_add_enum_encoded (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_const (ctf_dict_t *, uint32_t, ctf_id_t); +extern ctf_id_t ctf_add_enum_encoded (ctf_dict_t *, uint32_t, const char *, const ctf_encoding_t *); -extern ctf_id_t ctf_add_enum (ctf_file_t *, uint32_t, const char *); -extern ctf_id_t ctf_add_float (ctf_file_t *, uint32_t, +extern ctf_id_t ctf_add_enum (ctf_dict_t *, uint32_t, const char *); +extern ctf_id_t ctf_add_float (ctf_dict_t *, uint32_t, const char *, const ctf_encoding_t *); -extern ctf_id_t ctf_add_forward (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_forward (ctf_dict_t *, uint32_t, const char *, uint32_t); -extern ctf_id_t ctf_add_function (ctf_file_t *, uint32_t, +extern ctf_id_t ctf_add_function (ctf_dict_t *, uint32_t, const ctf_funcinfo_t *, const ctf_id_t *); -extern ctf_id_t ctf_add_integer (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_integer (ctf_dict_t *, uint32_t, const char *, const ctf_encoding_t *); -extern ctf_id_t ctf_add_slice (ctf_file_t *, uint32_t, ctf_id_t, const ctf_encoding_t *); -extern ctf_id_t ctf_add_pointer (ctf_file_t *, uint32_t, ctf_id_t); -extern ctf_id_t ctf_add_type (ctf_file_t *, ctf_file_t *, ctf_id_t); -extern ctf_id_t ctf_add_typedef (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_slice (ctf_dict_t *, uint32_t, ctf_id_t, const ctf_encoding_t *); +extern ctf_id_t ctf_add_pointer (ctf_dict_t *, uint32_t, ctf_id_t); +extern ctf_id_t ctf_add_type (ctf_dict_t *, ctf_dict_t *, ctf_id_t); +extern ctf_id_t ctf_add_typedef (ctf_dict_t *, uint32_t, const char *, ctf_id_t); -extern ctf_id_t ctf_add_restrict (ctf_file_t *, uint32_t, ctf_id_t); -extern ctf_id_t ctf_add_struct (ctf_file_t *, uint32_t, const char *); -extern ctf_id_t ctf_add_union (ctf_file_t *, uint32_t, const char *); -extern ctf_id_t ctf_add_struct_sized (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_restrict (ctf_dict_t *, uint32_t, ctf_id_t); +extern ctf_id_t ctf_add_struct (ctf_dict_t *, uint32_t, const char *); +extern ctf_id_t ctf_add_union (ctf_dict_t *, uint32_t, const char *); +extern ctf_id_t ctf_add_struct_sized (ctf_dict_t *, uint32_t, const char *, size_t); -extern ctf_id_t ctf_add_union_sized (ctf_file_t *, uint32_t, const char *, +extern ctf_id_t ctf_add_union_sized (ctf_dict_t *, uint32_t, const char *, size_t); -extern ctf_id_t ctf_add_volatile (ctf_file_t *, uint32_t, ctf_id_t); +extern ctf_id_t ctf_add_volatile (ctf_dict_t *, uint32_t, ctf_id_t); -extern int ctf_add_enumerator (ctf_file_t *, ctf_id_t, const char *, int); -extern int ctf_add_member (ctf_file_t *, ctf_id_t, const char *, ctf_id_t); -extern int ctf_add_member_offset (ctf_file_t *, ctf_id_t, const char *, +extern int ctf_add_enumerator (ctf_dict_t *, ctf_id_t, const char *, int); +extern int ctf_add_member (ctf_dict_t *, ctf_id_t, const char *, ctf_id_t); +extern int ctf_add_member_offset (ctf_dict_t *, ctf_id_t, const char *, ctf_id_t, unsigned long); -extern int ctf_add_member_encoded (ctf_file_t *, ctf_id_t, const char *, +extern int ctf_add_member_encoded (ctf_dict_t *, ctf_id_t, const char *, ctf_id_t, unsigned long, const ctf_encoding_t); -extern int ctf_add_variable (ctf_file_t *, const char *, ctf_id_t); +extern int ctf_add_variable (ctf_dict_t *, const char *, ctf_id_t); + +extern int ctf_add_objt_sym (ctf_dict_t *, const char *, ctf_id_t); +extern int ctf_add_func_sym (ctf_dict_t *, const char *, ctf_id_t); -extern int ctf_set_array (ctf_file_t *, ctf_id_t, const ctf_arinfo_t *); +extern int ctf_set_array (ctf_dict_t *, ctf_id_t, const ctf_arinfo_t *); -extern ctf_file_t *ctf_create (int *); -extern int ctf_update (ctf_file_t *); -extern ctf_snapshot_id_t ctf_snapshot (ctf_file_t *); -extern int ctf_rollback (ctf_file_t *, ctf_snapshot_id_t); -extern int ctf_discard (ctf_file_t *); -extern int ctf_write (ctf_file_t *, int); -extern int ctf_gzwrite (ctf_file_t *fp, gzFile fd); -extern int ctf_compress_write (ctf_file_t * fp, int fd); -extern unsigned char *ctf_write_mem (ctf_file_t *, size_t *, size_t threshold); +extern ctf_dict_t *ctf_create (int *); +extern int ctf_update (ctf_dict_t *); +extern ctf_snapshot_id_t ctf_snapshot (ctf_dict_t *); +extern int ctf_rollback (ctf_dict_t *, ctf_snapshot_id_t); +extern int ctf_discard (ctf_dict_t *); +extern int ctf_write (ctf_dict_t *, int); +extern int ctf_gzwrite (ctf_dict_t *fp, gzFile fd); +extern int ctf_compress_write (ctf_dict_t * fp, int fd); +extern unsigned char *ctf_write_mem (ctf_dict_t *, size_t *, size_t threshold); -extern int ctf_link_add_ctf (ctf_file_t *, ctf_archive_t *, const char *); +extern int ctf_link_add_ctf (ctf_dict_t *, ctf_archive_t *, const char *); /* The variable filter should return nonzero if a variable should not appear in the output. */ -typedef int ctf_link_variable_filter_f (ctf_file_t *, const char *, ctf_id_t, +typedef int ctf_link_variable_filter_f (ctf_dict_t *, const char *, ctf_id_t, void *); -extern int ctf_link_set_variable_filter (ctf_file_t *, +extern int ctf_link_set_variable_filter (ctf_dict_t *, ctf_link_variable_filter_f *, void *); -extern int ctf_link (ctf_file_t *, int flags); +extern int ctf_link (ctf_dict_t *, int flags); typedef const char *ctf_link_strtab_string_f (uint32_t *offset, void *arg); -extern int ctf_link_add_strtab (ctf_file_t *, ctf_link_strtab_string_f *, +extern int ctf_link_add_strtab (ctf_dict_t *, ctf_link_strtab_string_f *, void *); -typedef ctf_link_sym_t *ctf_link_iter_symbol_f (ctf_link_sym_t *dest, - void *arg); -extern int ctf_link_shuffle_syms (ctf_file_t *, ctf_link_iter_symbol_f *, - void *); -extern unsigned char *ctf_link_write (ctf_file_t *, size_t *size, +extern int ctf_link_add_linker_symbol (ctf_dict_t *, ctf_link_sym_t *); +extern int ctf_link_shuffle_syms (ctf_dict_t *); +extern unsigned char *ctf_link_write (ctf_dict_t *, size_t *size, size_t threshold); /* Specialist linker functions. These functions are not used by ld, but can be used by other programs making use of the linker machinery for other purposes to customize its output. */ -extern int ctf_link_add_cu_mapping (ctf_file_t *, const char *from, +extern int ctf_link_add_cu_mapping (ctf_dict_t *, const char *from, const char *to); -typedef char *ctf_link_memb_name_changer_f (ctf_file_t *, +typedef char *ctf_link_memb_name_changer_f (ctf_dict_t *, const char *, void *); extern void ctf_link_set_memb_name_changer - (ctf_file_t *, ctf_link_memb_name_changer_f *, void *); + (ctf_dict_t *, ctf_link_memb_name_changer_f *, void *); extern void ctf_setdebug (int debug); extern int ctf_getdebug (void); +/* Deprecated aliases for existing functions and types. */ + +struct ctf_file; +typedef struct ctf_dict ctf_file_t; +extern void ctf_file_close (ctf_file_t *); +extern ctf_dict_t *ctf_parent_file (ctf_dict_t *); +extern ctf_dict_t *ctf_arc_open_by_name (const ctf_archive_t *, + const char *, int *); +extern ctf_dict_t *ctf_arc_open_by_name_sections (const ctf_archive_t *, + const ctf_sect_t *, + const ctf_sect_t *, + const char *, int *); + #ifdef __cplusplus } #endif diff -Nru libiberty-20201110/include/ctf.h libiberty-20210106/include/ctf.h --- libiberty-20201110/include/ctf.h 2020-07-22 20:54:54.000000000 +0000 +++ libiberty-20210106/include/ctf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* CTF format description. - Copyright (C) 2019-2020 Free Software Foundation, Inc. + Copyright (C) 2019-2021 Free Software Foundation, Inc. This file is part of libctf. @@ -73,18 +73,20 @@ the data types section. Each label is accompanied by a type ID i. A given label refers to the group of types whose IDs are in the range [0, i]. - Data object and function records are stored in the same order as they appear - in the corresponding symbol table, except that symbols marked SHN_UNDEF are - not stored and symbols that have no type data are padded out with zeroes. - For each data object, the type ID (a small integer) is recorded. For each - function, the type ID of the return type and argument types is recorded. + Data object and function records (collectively, "symtypetabs") are stored in + the same order as they appear in the corresponding symbol table, except that + symbols marked SHN_UNDEF are not stored and symbols that have no type data + are padded out with zeroes. For each entry in these tables, the type ID (a + small integer) is recorded. (Functions get CTF_K_FUNCTION types, just like + data objects that are function pointers.) For situations in which the order of the symbols in the symtab is not known, - a pair of optional indexes follow the data object and function info sections: - each of these is an array of strtab indexes, mapped 1:1 to the corresponding - data object / function info section, giving each entry in those sections a - name so that the linker can correlate them with final symtab entries and - reorder them accordingly (dropping the indexes in the process). + or most symbols have no type in this dict and most entries would be + zero-pads, a pair of optional indexes follow the data object and function + info sections: each of these is an array of strtab indexes, mapped 1:1 to the + corresponding data object / function info section, giving each entry in those + sections a name so that the linker can correlate them with final symtab + entries and reorder them accordingly (dropping the indexes in the process). Variable records (as distinct from data objects) provide a modicum of support for non-ELF systems, mapping a variable name to a CTF type ID. The variable @@ -92,7 +94,8 @@ not define how the consumer maps these variable names to addresses or anything else, or indeed what these names represent: they might be names looked up at runtime via dlsym() or names extracted at runtime by a debugger - or anything else the consumer likes. + or anything else the consumer likes. Variable records with identically- + named entries in the data object section are removed. The data types section is a list of variable size records that represent each type, in order by their ID. The types themselves form a directed graph, @@ -104,18 +107,21 @@ Strings are recorded as a string table ID (0 or 1) and a byte offset into the string table. String table 0 is the internal CTF string table. String table 1 is the external string table, which is the string table associated with the - ELF symbol table for this object. CTF does not record any strings that are - already in the symbol table, and the CTF string table does not contain any - duplicated strings. + ELF dynamic symbol table for this object. CTF does not record any strings + that are already in the symbol table, and the CTF string table does not + contain any duplicated strings. If the CTF data has been merged with another parent CTF object, some outgoing edges may refer to type nodes that exist in another CTF object. The debugger and libctf library are responsible for connecting the appropriate objects together so that the full set of types can be explored and manipulated. - This connection is done purely using the ctf_import() function. There is no - notation anywhere in the child CTF file indicating which parent it is - connected to: it is the debugger's responsibility to track this. */ + This connection is done purely using the ctf_import() function. The + ctf_archive machinery (and thus ctf_open et al) automatically imports archive + members named ".ctf" into child dicts if available in the same archive, to + match the relationship set up by the linker, but callers can call ctf_import + themselves as well if need be, if they know a different relationship is in + force. */ #define CTF_MAX_TYPE 0xfffffffe /* Max type identifier value. */ #define CTF_MAX_PTYPE 0x7fffffff /* Max parent type identifier value. */ @@ -199,8 +205,16 @@ #define CTF_VERSION_3 4 #define CTF_VERSION CTF_VERSION_3 /* Current version. */ +/* All of these flags bar CTF_F_COMPRESS and CTF_F_IDXSORTED are bug-workaround + flags and are valid only in format v3: in v2 and below they cannot occur and + in v4 and later, they will be recycled for other purposes. */ + #define CTF_F_COMPRESS 0x1 /* Data buffer is compressed by libctf. */ -#define CTF_F_MAX CTF_F_COMPRESS /* The greatest flag value in use. */ +#define CTF_F_NEWFUNCINFO 0x2 /* New v3 func info section format. */ +#define CTF_F_IDXSORTED 0x4 /* Index sections already sorted. */ +#define CTF_F_DYNSTR 0x8 /* Strings come from .dynstr. */ +#define CTF_F_MAX (CTF_F_COMPRESS | CTF_F_NEWFUNCINFO | CTF_F_IDXSORTED \ + | CTF_F_DYNSTR) typedef struct ctf_lblent { @@ -552,7 +566,7 @@ int32_t cte_value; /* Value associated with this name. */ } ctf_enum_t; -/* The ctf_archive is a collection of ctf_file_t's stored together. The format +/* The ctf_archive is a collection of ctf_dict_t's stored together. The format is suitable for mmap()ing: this control structure merely describes the mmap()ed archive (and overlaps the first few bytes of it), hence the greater care taken with integral types. All CTF files in an archive @@ -578,20 +592,20 @@ /* CTF data model. */ uint64_t ctfa_model; - /* Number of CTF files in the archive. */ - uint64_t ctfa_nfiles; + /* Number of CTF dicts in the archive. */ + uint64_t ctfa_ndicts; /* Offset of the name table. */ uint64_t ctfa_names; /* Offset of the CTF table. Each element starts with a size (a uint64_t - in network byte order) then a ctf_file_t of that size. */ + in network byte order) then a ctf_dict_t of that size. */ uint64_t ctfa_ctfs; }; /* An array of ctfa_nnamed of this structure lies at ctf_archive[ctf_archive->ctfa_modents] and gives the ctfa_ctfs or - ctfa_names-relative offsets of each name or ctf_file_t. */ + ctfa_names-relative offsets of each name or ctf_dict_t. */ typedef struct ctf_archive_modent { diff -Nru libiberty-20201110/include/demangle.h libiberty-20210106/include/demangle.h --- libiberty-20201110/include/demangle.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/demangle.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Defs for interface to demanglers. - Copyright (C) 1992-2020 Free Software Foundation, Inc. + Copyright (C) 1992-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License diff -Nru libiberty-20201110/include/diagnostics.h libiberty-20210106/include/diagnostics.h --- libiberty-20201110/include/diagnostics.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/diagnostics.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2017-2020 Free Software Foundation, Inc. +/* Copyright (C) 2017-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/dis-asm.h libiberty-20210106/include/dis-asm.h --- libiberty-20201110/include/dis-asm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/dis-asm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Interface between the opcode library and its callers. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/dwarf2.def libiberty-20210106/include/dwarf2.def --- libiberty-20201110/include/dwarf2.def 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/dwarf2.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* -*- c -*- Declarations and definitions of codes relating to the DWARF2 and DWARF3 symbolic debugging information formats. - Copyright (C) 1992-2020 Free Software Foundation, Inc. + Copyright (C) 1992-2021 Free Software Foundation, Inc. Written by Gary Funck (gary@intrepid.com) The Ada Joint Program Office (AJPO), Florida State University and Silicon Graphics Inc. diff -Nru libiberty-20201110/include/dwarf2.h libiberty-20210106/include/dwarf2.h --- libiberty-20201110/include/dwarf2.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/dwarf2.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Declarations and definitions of codes relating to the DWARF2 and DWARF3 symbolic debugging information formats. - Copyright (C) 1992-2020 Free Software Foundation, Inc. + Copyright (C) 1992-2021 Free Software Foundation, Inc. Written by Gary Funck (gary@intrepid.com) The Ada Joint Program Office (AJPO), Florida State University and Silicon Graphics Inc. diff -Nru libiberty-20201110/include/dyn-string.h libiberty-20210106/include/dyn-string.h --- libiberty-20201110/include/dyn-string.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/dyn-string.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* An abstract string datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell (mark@markmitchell.com). This file is part of GCC. diff -Nru libiberty-20201110/include/elf/aarch64.h libiberty-20210106/include/elf/aarch64.h --- libiberty-20201110/include/elf/aarch64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/aarch64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* AArch64 ELF support for BFD. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GNU Binutils. diff -Nru libiberty-20201110/include/elf/alpha.h libiberty-20210106/include/elf/alpha.h --- libiberty-20201110/include/elf/alpha.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/alpha.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ALPHA ELF support for BFD. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. By Eric Youngdale, . No processor supplement available for this platform. diff -Nru libiberty-20201110/include/elf/arc-cpu.def libiberty-20210106/include/elf/arc-cpu.def --- libiberty-20201110/include/elf/arc-cpu.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/arc-cpu.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARC processor types - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. diff -Nru libiberty-20201110/include/elf/arc.h libiberty-20210106/include/elf/arc.h --- libiberty-20201110/include/elf/arc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/arc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARC ELF support for BFD. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. Contributed by Doug Evans, (dje@cygnus.com) This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/arc-reloc.def libiberty-20210106/include/elf/arc-reloc.def --- libiberty-20201110/include/elf/arc-reloc.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/arc-reloc.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARC relocation types - Copyright (C) 2015-2020 Free Software Foundation, Inc. + Copyright (C) 2015-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/arm.h libiberty-20210106/include/elf/arm.h --- libiberty-20201110/include/elf/arm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/arm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARM ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/avr.h libiberty-20210106/include/elf/avr.h --- libiberty-20201110/include/elf/avr.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/avr.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* AVR ELF support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Contributed by Denis Chertykov This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/bfin.h libiberty-20210106/include/elf/bfin.h --- libiberty-20201110/include/elf/bfin.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/bfin.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Blackfin ELF support for BFD. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/bpf.h libiberty-20210106/include/elf/bpf.h --- libiberty-20201110/include/elf/bpf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/bpf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Linux eBPF support for BFD. - Copyright (C) 2019-2020 Free Software Foundation, Inc. + Copyright (C) 2019-2021 Free Software Foundation, Inc. Contributed by Oracle, Inc. diff -Nru libiberty-20201110/include/elf/common.h libiberty-20210106/include/elf/common.h --- libiberty-20201110/include/elf/common.h 2020-11-03 07:29:24.000000000 +0000 +++ libiberty-20210106/include/elf/common.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ELF support for BFD. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support, from information published in "UNIX System V Release 4, Programmers Guide: ANSI C and @@ -339,9 +339,21 @@ #define EM_AMDGPU 224 /* AMD GPU architecture */ #define EM_RISCV 243 /* RISC-V */ #define EM_LANAI 244 /* Lanai 32-bit processor. */ +#define EM_CEVA 245 /* CEVA Processor Architecture Family */ +#define EM_CEVA_X2 246 /* CEVA X2 Processor Family */ #define EM_BPF 247 /* Linux BPF – in-kernel virtual machine. */ +#define EM_GRAPHCORE_IPU 248 /* Graphcore Intelligent Processing Unit */ +#define EM_IMG1 249 /* Imagination Technologies */ #define EM_NFP 250 /* Netronome Flow Processor. */ +#define EM_VE 251 /* NEC Vector Engine */ #define EM_CSKY 252 /* C-SKY processor family. */ +#define EM_ARC_COMPACT3_64 253 /* Synopsys ARCv2.3 64-bit */ +#define EM_MCS6502 254 /* MOS Technology MCS 6502 processor */ +#define EM_ARC_COMPACT3 255 /* Synopsys ARCv2.3 32-bit */ +#define EM_KVX 256 /* Kalray VLIW core of the MPPA processor family */ +#define EM_65816 257 /* WDC 65816/65C816 */ +#define EM_LOONGARCH 258 /* Loongson Loongarch */ +#define EM_KF32 259 /* ChipON KungFu32 */ /* If it is necessary to assign new unofficial EM_* values, please pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision @@ -553,7 +565,7 @@ /* #define SHF_MASKOS 0x0F000000 *//* OS-specific semantics */ #define SHF_MASKOS 0x0FF00000 /* New value, Oct 4, 1999 Draft */ -#define SHF_GNU_BUILD_NOTE (1 << 20) /* Section contains GNU BUILD ATTRIBUTE notes. */ +#define SHF_GNU_RETAIN (1 << 21) /* Section should not be garbage collected by the linker. */ #define SHF_MASKPROC 0xF0000000 /* Processor-specific semantics */ /* This used to be implemented as a processor specific section flag. @@ -830,6 +842,8 @@ #define GNU_PROPERTY_X86_FEATURE_1_IBT (1U << 0) #define GNU_PROPERTY_X86_FEATURE_1_SHSTK (1U << 1) +#define GNU_PROPERTY_X86_FEATURE_1_LAM_U48 (1U << 2) +#define GNU_PROPERTY_X86_FEATURE_1_LAM_U57 (1U << 3) #define GNU_PROPERTY_X86_FEATURE_2_X86 (1U << 0) #define GNU_PROPERTY_X86_FEATURE_2_X87 (1U << 1) @@ -1032,6 +1046,7 @@ deliberate special case and we maintain it for backwards compatability. */ #define DT_VALRNGLO 0x6ffffd00 +#define DT_GNU_FLAGS_1 0x6ffffdf4 #define DT_GNU_PRELINKED 0x6ffffdf5 #define DT_GNU_CONFLICTSZ 0x6ffffdf6 #define DT_GNU_LIBLISTSZ 0x6ffffdf7 @@ -1095,6 +1110,9 @@ #define DF_P1_LAZYLOAD 0x00000001 #define DF_P1_GROUPPERM 0x00000002 +/* Flag value in the DT_GNU_FLAGS_1 /dynamic entry. */ +#define DF_GNU_1_UNIQUE 0x00000001 + /* Flag value in in the DT_FLAGS_1 .dynamic entry. */ #define DF_1_NOW 0x00000001 #define DF_1_GLOBAL 0x00000002 diff -Nru libiberty-20201110/include/elf/cr16.h libiberty-20210106/include/elf/cr16.h --- libiberty-20201110/include/elf/cr16.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/cr16.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* CR16 ELF support for BFD. - Copyright (C) 2007-2020 Free Software Foundation, Inc. + Copyright (C) 2007-2021 Free Software Foundation, Inc. Contributed by M R Swami Reddy. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/cris.h libiberty-20210106/include/elf/cris.h --- libiberty-20201110/include/elf/cris.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/cris.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* CRIS ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Axis Communications AB, Lund, Sweden. Written by Hans-Peter Nilsson. diff -Nru libiberty-20201110/include/elf/crx.h libiberty-20210106/include/elf/crx.h --- libiberty-20201110/include/elf/crx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/crx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* CRX ELF support for BFD. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. Contributed by Tomer Levi, NSC, Israel. Originally written for GAS 2.12 by Tomer Levi, NSC, Israel. Updates, BFDizing, GNUifying and ELF support by Tomer Levi. diff -Nru libiberty-20201110/include/elf/csky.h libiberty-20210106/include/elf/csky.h --- libiberty-20201110/include/elf/csky.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/elf/csky.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* C-SKY ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by C-SKY Microsystems and Mentor Graphics. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/d10v.h libiberty-20210106/include/elf/d10v.h --- libiberty-20201110/include/elf/d10v.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/d10v.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* d10v ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/d30v.h libiberty-20210106/include/elf/d30v.h --- libiberty-20201110/include/elf/d30v.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/d30v.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* d30v ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/dlx.h libiberty-20210106/include/elf/dlx.h --- libiberty-20201110/include/elf/dlx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/dlx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* DLX support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/dwarf.h libiberty-20210106/include/elf/dwarf.h --- libiberty-20201110/include/elf/dwarf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/dwarf.h 2021-01-04 12:43:12.000000000 +0000 @@ -3,7 +3,7 @@ Written by Ron Guilmette (rfg@netcom.com) - Copyright (C) 1992-2020 Free Software Foundation, Inc. + Copyright (C) 1992-2021 Free Software Foundation, Inc. This file is part of both GCC and the BFD library. diff -Nru libiberty-20201110/include/elf/epiphany.h libiberty-20210106/include/elf/epiphany.h --- libiberty-20201110/include/elf/epiphany.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/epiphany.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Adapteva EPIPHANY ELF support for BFD. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. Contributed by Embecosm on behalf of Adapteva, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/external.h libiberty-20210106/include/elf/external.h --- libiberty-20201110/include/elf/external.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/external.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ELF support for BFD. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support, from information published in "UNIX System V Release 4, Programmers Guide: ANSI C and diff -Nru libiberty-20201110/include/elf/fr30.h libiberty-20210106/include/elf/fr30.h --- libiberty-20201110/include/elf/fr30.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/fr30.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* FR30 ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/frv.h libiberty-20210106/include/elf/frv.h --- libiberty-20201110/include/elf/frv.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/frv.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* FRV ELF support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/ft32.h libiberty-20210106/include/elf/ft32.h --- libiberty-20201110/include/elf/ft32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/ft32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ft32 ELF support for BFD. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/h8.h libiberty-20210106/include/elf/h8.h --- libiberty-20201110/include/elf/h8.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/h8.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* H8300/h8500 ELF support for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/hppa.h libiberty-20210106/include/elf/hppa.h --- libiberty-20201110/include/elf/hppa.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/hppa.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* HPPA ELF support for BFD. - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/i370.h libiberty-20210106/include/elf/i370.h --- libiberty-20201110/include/elf/i370.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/i370.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* i370 ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/i386.h libiberty-20210106/include/elf/i386.h --- libiberty-20201110/include/elf/i386.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/i386.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ix86 ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/i860.h libiberty-20210106/include/elf/i860.h --- libiberty-20201110/include/elf/i860.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/i860.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* i860 ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Jason Eckhardt . diff -Nru libiberty-20201110/include/elf/i960.h libiberty-20210106/include/elf/i960.h --- libiberty-20201110/include/elf/i960.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/i960.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Intel 960 ELF support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/ia64.h libiberty-20210106/include/elf/ia64.h --- libiberty-20201110/include/elf/ia64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/ia64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IA-64 ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by David Mosberger-Tang This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/internal.h libiberty-20210106/include/elf/internal.h --- libiberty-20201110/include/elf/internal.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/elf/internal.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ELF support for BFD. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support, from information published in "UNIX System V Release 4, Programmers Guide: ANSI C and diff -Nru libiberty-20201110/include/elf/ip2k.h libiberty-20210106/include/elf/ip2k.h --- libiberty-20201110/include/elf/ip2k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/ip2k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IP2xxx ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/iq2000.h libiberty-20210106/include/elf/iq2000.h --- libiberty-20201110/include/elf/iq2000.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/iq2000.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IQ2000 ELF support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/lm32.h libiberty-20210106/include/elf/lm32.h --- libiberty-20201110/include/elf/lm32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/lm32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Lattice Mico32 ELF support for BFD. - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. Contributed by Jon Beniston This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/m32c.h libiberty-20210106/include/elf/m32c.h --- libiberty-20201110/include/elf/m32c.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/m32c.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* M32C ELF support for BFD. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/m32r.h libiberty-20210106/include/elf/m32r.h --- libiberty-20201110/include/elf/m32r.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/m32r.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* M32R ELF support for BFD. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/m68hc11.h libiberty-20210106/include/elf/m68hc11.h --- libiberty-20201110/include/elf/m68hc11.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/m68hc11.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* m68hc11 & m68hc12 ELF support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/m68k.h libiberty-20210106/include/elf/m68k.h --- libiberty-20201110/include/elf/m68k.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/elf/m68k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MC68k ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mcore.h libiberty-20210106/include/elf/mcore.h --- libiberty-20201110/include/elf/mcore.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mcore.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Motorola MCore support for BFD. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mep.h libiberty-20210106/include/elf/mep.h --- libiberty-20201110/include/elf/mep.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mep.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Toshiba MeP ELF support for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/metag.h libiberty-20210106/include/elf/metag.h --- libiberty-20201110/include/elf/metag.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/metag.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Meta ELF support for BFD. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Contributed by Imagination Technologies Ltd. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/microblaze.h libiberty-20210106/include/elf/microblaze.h --- libiberty-20201110/include/elf/microblaze.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/microblaze.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Xilinx MicroBlaze support for BFD. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mips.h libiberty-20210106/include/elf/mips.h --- libiberty-20201110/include/elf/mips.h 2020-06-23 12:11:56.000000000 +0000 +++ libiberty-20210106/include/elf/mips.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MIPS ELF support for BFD. - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. By Ian Lance Taylor, Cygnus Support, , from information in the System V Application Binary Interface, MIPS diff -Nru libiberty-20201110/include/elf/mmix.h libiberty-20210106/include/elf/mmix.h --- libiberty-20201110/include/elf/mmix.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mmix.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MMIX support for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mn10200.h libiberty-20210106/include/elf/mn10200.h --- libiberty-20201110/include/elf/mn10200.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mn10200.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MN10200 ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mn10300.h libiberty-20210106/include/elf/mn10300.h --- libiberty-20201110/include/elf/mn10300.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mn10300.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MN10300 ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/moxie.h libiberty-20210106/include/elf/moxie.h --- libiberty-20201110/include/elf/moxie.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/moxie.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* moxie ELF support for BFD. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/msp430.h libiberty-20210106/include/elf/msp430.h --- libiberty-20201110/include/elf/msp430.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/elf/msp430.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MSP430 ELF support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Dmitry Diky This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/mt.h libiberty-20210106/include/elf/mt.h --- libiberty-20201110/include/elf/mt.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/mt.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* MS1 ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/nds32.h libiberty-20210106/include/elf/nds32.h --- libiberty-20201110/include/elf/nds32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/nds32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* NDS32 ELF support for BFD. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. Contributed by Andes Technology Corporation. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/nfp.h libiberty-20210106/include/elf/nfp.h --- libiberty-20201110/include/elf/nfp.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/nfp.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* NFP ELF support for BFD. - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. Contributed by Francois H. Theron This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/nios2.h libiberty-20210106/include/elf/nios2.h --- libiberty-20201110/include/elf/nios2.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/nios2.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Altera Nios II ELF support for BFD. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. Contributed by Nigel Gray (ngray@altera.com). Contributed by Mentor Graphics, Inc. diff -Nru libiberty-20201110/include/elf/or1k.h libiberty-20210106/include/elf/or1k.h --- libiberty-20201110/include/elf/or1k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/or1k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Or1k ELF support for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/pj.h libiberty-20210106/include/elf/pj.h --- libiberty-20201110/include/elf/pj.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/pj.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* picoJava ELF support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/ppc64.h libiberty-20210106/include/elf/ppc64.h --- libiberty-20201110/include/elf/ppc64.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/elf/ppc64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* PPC64 ELF support for BFD. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/ppc.h libiberty-20210106/include/elf/ppc.h --- libiberty-20201110/include/elf/ppc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/ppc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* PPC ELF support for BFD. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. By Michael Meissner, Cygnus Support, , from information in the System V Application Binary Interface, diff -Nru libiberty-20201110/include/elf/pru.h libiberty-20210106/include/elf/pru.h --- libiberty-20201110/include/elf/pru.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/pru.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI PRU ELF support for BFD. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Contributed by Dimitar Dimitrov This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/reloc-macros.h libiberty-20210106/include/elf/reloc-macros.h --- libiberty-20201110/include/elf/reloc-macros.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/reloc-macros.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Generic relocation support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/riscv.h libiberty-20210106/include/elf/riscv.h --- libiberty-20201110/include/elf/riscv.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/elf/riscv.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* RISC-V ELF support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. Contributed by Andrew Waterman (andrew@sifive.com). Based on MIPS ELF support for BFD, by Ian Lance Taylor. diff -Nru libiberty-20201110/include/elf/rl78.h libiberty-20210106/include/elf/rl78.h --- libiberty-20201110/include/elf/rl78.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/rl78.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* RL78 ELF support for BFD. - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/rx.h libiberty-20210106/include/elf/rx.h --- libiberty-20201110/include/elf/rx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/rx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* RX ELF support for BFD. - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/s12z.h libiberty-20210106/include/elf/s12z.h --- libiberty-20201110/include/elf/s12z.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/s12z.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* s12z ELF support for BFD. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/s390.h libiberty-20210106/include/elf/s390.h --- libiberty-20201110/include/elf/s390.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/s390.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* 390 ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Carl B. Pedersen and Martin Schwidefsky. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/score.h libiberty-20210106/include/elf/score.h --- libiberty-20201110/include/elf/score.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/score.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Score ELF support for BFD. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. Contributed by Brain.lin (brain.lin@sunplusct.com) Mei Ligang (ligang@sunnorth.com.cn) diff -Nru libiberty-20201110/include/elf/sh.h libiberty-20210106/include/elf/sh.h --- libiberty-20201110/include/elf/sh.h 2020-05-12 14:12:37.000000000 +0000 +++ libiberty-20210106/include/elf/sh.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SH ELF support for BFD. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/sparc.h libiberty-20210106/include/elf/sparc.h --- libiberty-20201110/include/elf/sparc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/sparc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SPARC ELF support for BFD. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. By Doug Evans, Cygnus Support, . This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/spu.h libiberty-20210106/include/elf/spu.h --- libiberty-20201110/include/elf/spu.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/spu.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* SPU ELF support for BFD. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/tic6x-attrs.h libiberty-20210106/include/elf/tic6x-attrs.h --- libiberty-20201110/include/elf/tic6x-attrs.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/tic6x-attrs.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X ELF attributes. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/tic6x.h libiberty-20210106/include/elf/tic6x.h --- libiberty-20201110/include/elf/tic6x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/tic6x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X ELF support for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/tilegx.h libiberty-20210106/include/elf/tilegx.h --- libiberty-20201110/include/elf/tilegx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/tilegx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TILE-Gx ELF support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/tilepro.h libiberty-20210106/include/elf/tilepro.h --- libiberty-20201110/include/elf/tilepro.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/tilepro.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TILEPro ELF support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/v850.h libiberty-20210106/include/elf/v850.h --- libiberty-20201110/include/elf/v850.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/v850.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* V850 ELF support for BFD. - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Created by Michael Meissner, Cygnus Support This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/vax.h libiberty-20210106/include/elf/vax.h --- libiberty-20201110/include/elf/vax.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/vax.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* VAX ELF support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Matt Thomas . This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/visium.h libiberty-20210106/include/elf/visium.h --- libiberty-20201110/include/elf/visium.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/visium.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Visium ELF support for BFD. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/vxworks.h libiberty-20210106/include/elf/vxworks.h --- libiberty-20201110/include/elf/vxworks.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/vxworks.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* VxWorks ELF support for BFD. - Copyright (C) 2007-2020 Free Software Foundation, Inc. + Copyright (C) 2007-2021 Free Software Foundation, Inc. Contributed by Nathan Sidwell diff -Nru libiberty-20201110/include/elf/wasm32.h libiberty-20210106/include/elf/wasm32.h --- libiberty-20201110/include/elf/wasm32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/wasm32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ELF support for BFD for the WebAssembly target - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/elf/x86-64.h libiberty-20210106/include/elf/x86-64.h --- libiberty-20201110/include/elf/x86-64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/x86-64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* x86_64 ELF support for BFD. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Jan Hubicka This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/xc16x.h libiberty-20210106/include/elf/xc16x.h --- libiberty-20201110/include/elf/xc16x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/xc16x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Infineon XC16X ELF support for BFD. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. Contributed by KPIT Cummins Infosystems This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/xgate.h libiberty-20210106/include/elf/xgate.h --- libiberty-20201110/include/elf/xgate.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/xgate.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* XGATE ELF support for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/xstormy16.h libiberty-20210106/include/elf/xstormy16.h --- libiberty-20201110/include/elf/xstormy16.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/elf/xstormy16.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* XSTORMY16 ELF support for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/xtensa.h libiberty-20210106/include/elf/xtensa.h --- libiberty-20201110/include/elf/xtensa.h 2020-06-23 12:11:56.000000000 +0000 +++ libiberty-20210106/include/elf/xtensa.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Xtensa ELF support for BFD. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/elf/z80.h libiberty-20210106/include/elf/z80.h --- libiberty-20201110/include/elf/z80.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/elf/z80.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Z80 ELF support for BFD. - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Contributed by Sergey Belyashov This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/environ.h libiberty-20210106/include/environ.h --- libiberty-20201110/include/environ.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/environ.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Declare the environ system variable. - Copyright (C) 2015-2020 Free Software Foundation, Inc. + Copyright (C) 2015-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/include/fibheap.h libiberty-20210106/include/fibheap.h --- libiberty-20201110/include/fibheap.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/fibheap.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* A Fibonacci heap datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Daniel Berlin (dan@cgsoftware.com). This file is part of GCC. diff -Nru libiberty-20201110/include/filenames.h libiberty-20210106/include/filenames.h --- libiberty-20201110/include/filenames.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/filenames.h 2021-01-04 12:43:12.000000000 +0000 @@ -5,7 +5,7 @@ use forward- and back-slash in path names interchangeably, and some of them have case-insensitive file names. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/floatformat.h libiberty-20210106/include/floatformat.h --- libiberty-20201110/include/floatformat.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/floatformat.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IEEE floating point support declarations, for GDB, the GNU Debugger. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/fnmatch.h libiberty-20210106/include/fnmatch.h --- libiberty-20201110/include/fnmatch.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/fnmatch.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2020 Free Software Foundation, Inc. +/* Copyright (C) 1991-2021 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. diff -Nru libiberty-20201110/include/fopen-bin.h libiberty-20210106/include/fopen-bin.h --- libiberty-20201110/include/fopen-bin.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/fopen-bin.h 2021-01-04 12:43:12.000000000 +0000 @@ -7,7 +7,7 @@ cope with a "b" in the string, indicating binary files, but some reject this (and thereby don't conform to ANSI C, but what else is new?). - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/fopen-same.h libiberty-20210106/include/fopen-same.h --- libiberty-20201110/include/fopen-same.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/fopen-same.h 2021-01-04 12:43:12.000000000 +0000 @@ -7,7 +7,7 @@ "b" to the string, indicating binary files, but some reject this (and thereby don't conform to ANSI C, but what else is new?). - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/fopen-vms.h libiberty-20210106/include/fopen-vms.h --- libiberty-20201110/include/fopen-vms.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/fopen-vms.h 2021-01-04 12:43:12.000000000 +0000 @@ -5,7 +5,7 @@ This version is for VMS systems, where text and binary files are different. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/gcc-c-fe.def libiberty-20210106/include/gcc-c-fe.def --- libiberty-20201110/include/gcc-c-fe.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gcc-c-fe.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Interface between GCC C FE and GDB -*- c -*- - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/gcc-c-interface.h libiberty-20210106/include/gcc-c-interface.h --- libiberty-20201110/include/gcc-c-interface.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gcc-c-interface.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Interface between GCC C FE and GDB - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/gcc-cp-fe.def libiberty-20210106/include/gcc-cp-fe.def --- libiberty-20201110/include/gcc-cp-fe.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gcc-cp-fe.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Interface between GCC C++ FE and GDB -*- c -*- - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/gcc-cp-interface.h libiberty-20210106/include/gcc-cp-interface.h --- libiberty-20201110/include/gcc-cp-interface.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gcc-cp-interface.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Interface between GCC C++ FE and GDB - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/gcc-interface.h libiberty-20210106/include/gcc-interface.h --- libiberty-20201110/include/gcc-interface.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gcc-interface.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Generic interface between GCC and GDB - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/gdb/callback.h libiberty-20210106/include/gdb/callback.h --- libiberty-20201110/include/gdb/callback.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/callback.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Remote target system call callback support. - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/ChangeLog libiberty-20210106/include/gdb/ChangeLog --- libiberty-20201110/include/gdb/ChangeLog 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/ChangeLog 2021-01-04 12:43:12.000000000 +0000 @@ -340,7 +340,7 @@ * signals.h: New file, from gdb/defs.h. -Copyright (C) 2002-2020 Free Software Foundation, Inc. +Copyright (C) 2002-2021 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff -Nru libiberty-20201110/include/gdb/fileio.h libiberty-20210106/include/gdb/fileio.h --- libiberty-20201110/include/gdb/fileio.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/fileio.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Hosted File I/O interface definitions, for GDB, the GNU Debugger. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/gdb/gdb-index.h libiberty-20210106/include/gdb/gdb-index.h --- libiberty-20201110/include/gdb/gdb-index.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/gdb-index.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Public attributes of the .gdb_index section. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/remote-sim.h libiberty-20210106/include/gdb/remote-sim.h --- libiberty-20201110/include/gdb/remote-sim.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/remote-sim.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the simulator and gdb. - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/section-scripts.h libiberty-20210106/include/gdb/section-scripts.h --- libiberty-20201110/include/gdb/section-scripts.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/section-scripts.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Definition of kinds of records in section .debug_gdb_scripts. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/signals.def libiberty-20210106/include/gdb/signals.def --- libiberty-20201110/include/gdb/signals.def 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/signals.def 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Target signal numbers for GDB and the GDB remote protocol. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/signals.h libiberty-20210106/include/gdb/signals.h --- libiberty-20201110/include/gdb/signals.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/signals.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Target signal numbers for GDB and the GDB remote protocol. - Copyright (C) 1986-2020 Free Software Foundation, Inc. + Copyright (C) 1986-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-aarch64.h libiberty-20210106/include/gdb/sim-aarch64.h --- libiberty-20201110/include/gdb/sim-aarch64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-aarch64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* sim-aarch64.h --- interface between AArch64 simulator and GDB. - Copyright (C) 2015-2020 Free Software Foundation, Inc. + Copyright (C) 2015-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-arm.h libiberty-20210106/include/gdb/sim-arm.h --- libiberty-20201110/include/gdb/sim-arm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-arm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the Arm simulator and GDB. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-bfin.h libiberty-20210106/include/gdb/sim-bfin.h --- libiberty-20201110/include/gdb/sim-bfin.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-bfin.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the Blackfin simulator and GDB. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Contributed by Analog Devices. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-cr16.h libiberty-20210106/include/gdb/sim-cr16.h --- libiberty-20201110/include/gdb/sim-cr16.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-cr16.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the cr16 simulator and gdb. - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-d10v.h libiberty-20210106/include/gdb/sim-d10v.h --- libiberty-20201110/include/gdb/sim-d10v.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-d10v.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the d10v simulator and gdb. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-frv.h libiberty-20210106/include/gdb/sim-frv.h --- libiberty-20201110/include/gdb/sim-frv.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-frv.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the FR-V simulator and GDB. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-ft32.h libiberty-20210106/include/gdb/sim-ft32.h --- libiberty-20201110/include/gdb/sim-ft32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-ft32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* This file defines the interface between the FT32 simulator and GDB. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Contributed by FTDI. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-h8300.h libiberty-20210106/include/gdb/sim-h8300.h --- libiberty-20201110/include/gdb/sim-h8300.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-h8300.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* This file defines the interface between the h8300 simulator and gdb. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-lm32.h libiberty-20210106/include/gdb/sim-lm32.h --- libiberty-20201110/include/gdb/sim-lm32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-lm32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* This file defines the interface between the LM32 simulator and GDB. Contributed by Jon Beniston - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-m32c.h libiberty-20210106/include/gdb/sim-m32c.h --- libiberty-20201110/include/gdb/sim-m32c.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-m32c.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* This file defines the interface between the m32c simulator and gdb. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/gdb/sim-ppc.h libiberty-20210106/include/gdb/sim-ppc.h --- libiberty-20201110/include/gdb/sim-ppc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-ppc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* sim-ppc.h --- interface between PowerPC simulator and GDB. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-rl78.h libiberty-20210106/include/gdb/sim-rl78.h --- libiberty-20201110/include/gdb/sim-rl78.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-rl78.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* sim-rx.h --- interface between rl78 simulator and GDB. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-rx.h libiberty-20210106/include/gdb/sim-rx.h --- libiberty-20201110/include/gdb/sim-rx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-rx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* sim-rx.h --- interface between RX simulator and GDB. - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. Contributed by Red Hat. diff -Nru libiberty-20201110/include/gdb/sim-sh.h libiberty-20210106/include/gdb/sim-sh.h --- libiberty-20201110/include/gdb/sim-sh.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/gdb/sim-sh.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* This file defines the interface between the sh simulator and gdb. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/getopt.h libiberty-20210106/include/getopt.h --- libiberty-20201110/include/getopt.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/getopt.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Declarations for getopt. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. diff -Nru libiberty-20201110/include/hashtab.h libiberty-20210106/include/hashtab.h --- libiberty-20201110/include/hashtab.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/hashtab.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* An expandable hash tables datatype. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Contributed by Vladimir Makarov (vmakarov@cygnus.com). This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/hp-symtab.h libiberty-20210106/include/hp-symtab.h --- libiberty-20201110/include/hp-symtab.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/hp-symtab.h 2021-01-04 12:43:12.000000000 +0000 @@ -4,7 +4,7 @@ Written by the Center for Software Science at the University of Utah and by Cygnus Support. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/leb128.h libiberty-20210106/include/leb128.h --- libiberty-20201110/include/leb128.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/leb128.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Utilities for reading leb128 values. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/include/libiberty.h libiberty-20210106/include/libiberty.h --- libiberty-20201110/include/libiberty.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/libiberty.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Function declarations for libiberty. - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Note - certain prototypes declared in this header file are for functions whoes implementation copyright does not belong to the diff -Nru libiberty-20201110/include/longlong.h libiberty-20210106/include/longlong.h --- libiberty-20201110/include/longlong.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/longlong.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* longlong.h -- definitions for mixed size 32/64 bit arithmetic. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. diff -Nru libiberty-20201110/include/lto-symtab.h libiberty-20210106/include/lto-symtab.h --- libiberty-20201110/include/lto-symtab.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/lto-symtab.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Data types used in the IL symbol table. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. Contributed by Rafael Espindola This file is part of GCC. diff -Nru libiberty-20201110/include/mach-o/arm64.h libiberty-20210106/include/mach-o/arm64.h --- libiberty-20201110/include/mach-o/arm64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/arm64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O arm declarations for BFD. - Copyright (C) 2015-2020 Free Software Foundation, Inc. + Copyright (C) 2015-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/arm.h libiberty-20210106/include/mach-o/arm.h --- libiberty-20201110/include/mach-o/arm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/arm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O arm declarations for BFD. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/codesign.h libiberty-20210106/include/mach-o/codesign.h --- libiberty-20201110/include/mach-o/codesign.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/codesign.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/external.h libiberty-20210106/include/mach-o/external.h --- libiberty-20201110/include/mach-o/external.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/external.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/loader.h libiberty-20210106/include/mach-o/loader.h --- libiberty-20201110/include/mach-o/loader.h 2020-06-23 12:11:56.000000000 +0000 +++ libiberty-20210106/include/mach-o/loader.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/reloc.h libiberty-20210106/include/mach-o/reloc.h --- libiberty-20201110/include/mach-o/reloc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/reloc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/unwind.h libiberty-20210106/include/mach-o/unwind.h --- libiberty-20201110/include/mach-o/unwind.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/unwind.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O compact unwind encoding. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/mach-o/x86-64.h libiberty-20210106/include/mach-o/x86-64.h --- libiberty-20201110/include/mach-o/x86-64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/mach-o/x86-64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Mach-O support for BFD. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/MAINTAINERS libiberty-20210106/include/MAINTAINERS --- libiberty-20201110/include/MAINTAINERS 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/MAINTAINERS 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ See ../binutils/MAINTAINERS -Copyright (C) 2012-2020 Free Software Foundation, Inc. +Copyright (C) 2012-2021 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright diff -Nru libiberty-20201110/include/md5.h libiberty-20210106/include/md5.h --- libiberty-20201110/include/md5.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/md5.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* md5.h - Declaration of functions and data types used for MD5 sum computing library functions. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. diff -Nru libiberty-20201110/include/oasys.h libiberty-20210106/include/oasys.h --- libiberty-20201110/include/oasys.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/oasys.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Oasys object format header file for BFD. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/objalloc.h libiberty-20210106/include/objalloc.h --- libiberty-20201110/include/objalloc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/objalloc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* objalloc.h -- routines to allocate memory for objects - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Solutions. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/include/obstack.h libiberty-20210106/include/obstack.h --- libiberty-20201110/include/obstack.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/obstack.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* obstack.h - object stack macros - Copyright (C) 1988-2020 Free Software Foundation, Inc. + Copyright (C) 1988-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/include/opcode/aarch64.h libiberty-20210106/include/opcode/aarch64.h --- libiberty-20201110/include/opcode/aarch64.h 2020-11-10 06:49:46.000000000 +0000 +++ libiberty-20210106/include/opcode/aarch64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* AArch64 assembler/disassembler support. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GNU Binutils. @@ -75,7 +75,7 @@ #define AARCH64_FEATURE_AES (1ULL << 35) /* AES instructions. */ #define AARCH64_FEATURE_F16_FML (1ULL << 36) /* v8.2 FP16FML ins. */ #define AARCH64_FEATURE_V8_5 (1ULL << 37) /* ARMv8.5 processors. */ -#define AARCH64_FEATURE_FLAGMANIP (1ULL << 38) /* Flag Manipulation insns. */ +#define AARCH64_FEATURE_FLAGMANIP (1ULL << 38) /* v8.5 Flag Manipulation version 2. */ #define AARCH64_FEATURE_FRINTTS (1ULL << 39) /* FRINT[32,64][Z,X] insns. */ #define AARCH64_FEATURE_SB (1ULL << 40) /* SB instruction. */ #define AARCH64_FEATURE_PREDRES (1ULL << 41) /* Execution and Data Prediction Restriction instructions. */ @@ -90,6 +90,7 @@ #define AARCH64_FEATURE_I8MM (1ULL << 52) /* Matrix Multiply instructions. */ #define AARCH64_FEATURE_F32MM (1ULL << 53) #define AARCH64_FEATURE_F64MM (1ULL << 54) +#define AARCH64_FEATURE_FLAGM (1ULL << 55) /* v8.4 Flag Manipulation. */ /* Crypto instructions are the combination of AES and SHA2. */ #define AARCH64_FEATURE_CRYPTO (AARCH64_FEATURE_SHA2 | AARCH64_FEATURE_AES) @@ -117,6 +118,7 @@ #define AARCH64_ARCH_V8_4 AARCH64_FEATURE (AARCH64_ARCH_V8_3, \ AARCH64_FEATURE_V8_4 \ | AARCH64_FEATURE_DOTPROD \ + | AARCH64_FEATURE_FLAGM \ | AARCH64_FEATURE_F16_FML) #define AARCH64_ARCH_V8_5 AARCH64_FEATURE (AARCH64_ARCH_V8_4, \ AARCH64_FEATURE_V8_5 \ @@ -1253,7 +1255,7 @@ { /* The instruction that caused this sequence to be opened. */ aarch64_inst *instr; - /* The number of instructions the above instruction allows to be kept in the + /* The number of instructions the above instruction allows one to be kept in the sequence before an automatic close is done. */ int num_insns; /* The instructions currently added to the sequence. */ diff -Nru libiberty-20201110/include/opcode/alpha.h libiberty-20210106/include/opcode/alpha.h --- libiberty-20201110/include/opcode/alpha.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/alpha.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* alpha.h -- Header file for Alpha opcode table - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. Contributed by Richard Henderson , patterned after the PPC opcode table written by Ian Lance Taylor. diff -Nru libiberty-20201110/include/opcode/arc-attrs.h libiberty-20210106/include/opcode/arc-attrs.h --- libiberty-20201110/include/opcode/arc-attrs.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/arc-attrs.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1994-2020 Free Software Foundation, Inc. +/* Copyright (C) 1994-2021 Free Software Foundation, Inc. Contributed by Claudiu Zissulescu (claziss@synopsys.com) @@ -58,7 +58,7 @@ #endif /* A table with conflicting features. */ -unsigned CONFLICT_LIST [] = { +const unsigned CONFLICT_LIST [] = { NPS400 | SPX, NPS400 | DPX, DPX | DPA, diff -Nru libiberty-20201110/include/opcode/arc-func.h libiberty-20210106/include/opcode/arc-func.h --- libiberty-20201110/include/opcode/arc-func.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/arc-func.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Replace functions for the ARC relocs. - Copyright (C) 2015-2020 Free Software Foundation, Inc. + Copyright (C) 2015-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and the GNU Binutils. diff -Nru libiberty-20201110/include/opcode/arc.h libiberty-20210106/include/opcode/arc.h --- libiberty-20201110/include/opcode/arc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/arc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode table for the ARC. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. Contributed by Claudiu Zissulescu (claziss@synopsys.com) diff -Nru libiberty-20201110/include/opcode/arm.h libiberty-20210106/include/opcode/arm.h --- libiberty-20201110/include/opcode/arm.h 2020-06-05 08:49:03.000000000 +0000 +++ libiberty-20210106/include/opcode/arm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ARM assembler/disassembler support. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/avr.h libiberty-20210106/include/opcode/avr.h --- libiberty-20201110/include/opcode/avr.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/avr.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Opcode table for the Atmel AVR micro controllers. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Denis Chertykov This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/bfin.h libiberty-20210106/include/opcode/bfin.h --- libiberty-20201110/include/opcode/bfin.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/bfin.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* bfin.h -- Header file for ADI Blackfin opcode table - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/cgen.h libiberty-20210106/include/opcode/cgen.h --- libiberty-20201110/include/opcode/cgen.h 2020-06-05 08:49:03.000000000 +0000 +++ libiberty-20210106/include/opcode/cgen.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Header file for targets using CGEN: Cpu tools GENerator. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of GDB, the GNU debugger, and the GNU Binutils. diff -Nru libiberty-20201110/include/opcode/convex.h libiberty-20210106/include/opcode/convex.h --- libiberty-20201110/include/opcode/convex.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/convex.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Information for instruction disassembly on the Convex. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/opcode/cr16.h libiberty-20210106/include/opcode/cr16.h --- libiberty-20201110/include/opcode/cr16.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/cr16.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* cr16.h -- Header file for CR16 opcode and register tables. - Copyright (C) 2007-2020 Free Software Foundation, Inc. + Copyright (C) 2007-2021 Free Software Foundation, Inc. Contributed by M R Swami Reddy This file is part of GAS, GDB and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/cris.h libiberty-20210106/include/opcode/cris.h --- libiberty-20201110/include/opcode/cris.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/cris.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* cris.h -- Header file for CRIS opcode and register tables. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Axis Communications AB, Lund, Sweden. Originally written for GAS 1.38.1 by Mikael Asker. Updated, BFDized and GNUified by Hans-Peter Nilsson. diff -Nru libiberty-20201110/include/opcode/crx.h libiberty-20210106/include/opcode/crx.h --- libiberty-20201110/include/opcode/crx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/crx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* crx.h -- Header file for CRX opcode and register tables. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. Contributed by Tomer Levi, NSC, Israel. Originally written for GAS 2.12 by Tomer Levi, NSC, Israel. Updates, BFDizing, GNUifying and ELF support by Tomer Levi. diff -Nru libiberty-20201110/include/opcode/csky.h libiberty-20210106/include/opcode/csky.h --- libiberty-20201110/include/opcode/csky.h 2020-11-03 07:29:24.000000000 +0000 +++ libiberty-20210106/include/opcode/csky.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* C-SKY assembler/disassembler support. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. Contributed by C-SKY Microsystems and Mentor Graphics. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/d10v.h libiberty-20210106/include/opcode/d10v.h --- libiberty-20201110/include/opcode/d10v.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/d10v.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* d10v.h -- Header file for D10V opcode table - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. Written by Martin Hunt (hunt@cygnus.com), Cygnus Support This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/d30v.h libiberty-20210106/include/opcode/d30v.h --- libiberty-20201110/include/opcode/d30v.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/opcode/d30v.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* d30v.h -- Header file for D30V opcode table - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Written by Martin Hunt (hunt@cygnus.com), Cygnus Solutions This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/dlx.h libiberty-20210106/include/opcode/dlx.h --- libiberty-20201110/include/opcode/dlx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/dlx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Table of opcodes for the DLX microprocess. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/ft32.h libiberty-20210106/include/opcode/ft32.h --- libiberty-20201110/include/opcode/ft32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/ft32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Definitions for decoding the ft32 opcode table. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Contributed by FTDI (support@ftdichip.com) This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/h8300.h libiberty-20210106/include/opcode/h8300.h --- libiberty-20201110/include/opcode/h8300.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/h8300.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode table for the H8/300 - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. Written by Steve Chamberlain . This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. diff -Nru libiberty-20201110/include/opcode/hppa.h libiberty-20210106/include/opcode/hppa.h --- libiberty-20201110/include/opcode/hppa.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/hppa.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Table of opcodes for the PA-RISC. - Copyright (C) 1990-2020 Free Software Foundation, Inc. + Copyright (C) 1990-2021 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah (pa-gdb-bugs@cs.utah.edu). diff -Nru libiberty-20201110/include/opcode/i386.h libiberty-20210106/include/opcode/i386.h --- libiberty-20201110/include/opcode/i386.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/i386.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* opcode/i386.h -- Intel 80386 opcode macros - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler, and GDB, the GNU Debugger. diff -Nru libiberty-20201110/include/opcode/ia64.h libiberty-20210106/include/opcode/ia64.h --- libiberty-20201110/include/opcode/ia64.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/ia64.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ia64.h -- Header file for ia64 opcode table - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by David Mosberger-Tang This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/opcode/m68hc11.h libiberty-20210106/include/opcode/m68hc11.h --- libiberty-20201110/include/opcode/m68hc11.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/m68hc11.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* m68hc11.h -- Header file for Motorola 68HC11 & 68HC12 opcode table - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Written by Stephane Carrez (stcarrez@nerim.fr) This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/m68k.h libiberty-20210106/include/opcode/m68k.h --- libiberty-20201110/include/opcode/m68k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/m68k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode table header for m680[01234]0/m6888[12]/m68851. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/metag.h libiberty-20210106/include/opcode/metag.h --- libiberty-20201110/include/opcode/metag.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/metag.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Imagination Technologies Meta opcode table. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Contributed by Imagination Technologies Ltd. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/mips.h libiberty-20210106/include/opcode/mips.h --- libiberty-20201110/include/opcode/mips.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/mips.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* mips.h. Mips opcode list for GDB, the GNU debugger. - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. Contributed by Ralph Campbell and OSF Commented and modified by Ian Lance Taylor, Cygnus Support diff -Nru libiberty-20201110/include/opcode/mmix.h libiberty-20210106/include/opcode/mmix.h --- libiberty-20201110/include/opcode/mmix.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/mmix.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* mmix.h -- Header file for MMIX opcode table - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. Written by Hans-Peter Nilsson (hp@bitrange.com) This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/mn10200.h libiberty-20210106/include/opcode/mn10200.h --- libiberty-20201110/include/opcode/mn10200.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/mn10200.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* mn10200.h -- Header file for Matsushita 10200 opcode table - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. Written by Jeff Law, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/mn10300.h libiberty-20210106/include/opcode/mn10300.h --- libiberty-20201110/include/opcode/mn10300.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/mn10300.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* mn10300.h -- Header file for Matsushita 10300 opcode table - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. Written by Jeff Law, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/moxie.h libiberty-20210106/include/opcode/moxie.h --- libiberty-20201110/include/opcode/moxie.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/moxie.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Definitions for decoding the moxie opcode table. - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. Contributed by Anthony Green (green@moxielogic.com). This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/msp430-decode.h libiberty-20210106/include/opcode/msp430-decode.h --- libiberty-20201110/include/opcode/msp430-decode.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/msp430-decode.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode decoder for the TI MSP430 - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. Written by DJ Delorie This file is part of GDB, the GNU Debugger. diff -Nru libiberty-20201110/include/opcode/msp430.h libiberty-20210106/include/opcode/msp430.h --- libiberty-20201110/include/opcode/msp430.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/msp430.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Opcode table for the TI MSP430 microcontrollers - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Dmitry Diky This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/nds32.h libiberty-20210106/include/opcode/nds32.h --- libiberty-20201110/include/opcode/nds32.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/nds32.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* nds32.h -- Header file for nds32 opcode table - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. Contributed by Andes Technology Corporation. This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/nfp.h libiberty-20210106/include/opcode/nfp.h --- libiberty-20201110/include/opcode/nfp.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/nfp.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* nfp.h. NFP opcode list. - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. Contributed by Francois H. Theron This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/opcode/nios2.h libiberty-20210106/include/opcode/nios2.h --- libiberty-20201110/include/opcode/nios2.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/nios2.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Nios II opcode list for GAS, the GNU assembler. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. Contributed by Nigel Gray (ngray@altera.com). Contributed by Mentor Graphics, Inc. diff -Nru libiberty-20201110/include/opcode/nios2r1.h libiberty-20210106/include/opcode/nios2r1.h --- libiberty-20201110/include/opcode/nios2r1.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/nios2r1.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Nios II R1 opcode list for GAS, the GNU assembler. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Contributed by Mentor Graphics, Inc. This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/opcode/nios2r2.h libiberty-20210106/include/opcode/nios2r2.h --- libiberty-20201110/include/opcode/nios2r2.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/nios2r2.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Nios II R2 opcode list for GAS, the GNU assembler. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Contributed by Mentor Graphics, Inc. This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/opcode/np1.h libiberty-20210106/include/opcode/np1.h --- libiberty-20201110/include/opcode/np1.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/np1.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Print GOULD NPL instructions for GDB, the GNU debugger. - Copyright (C) 1986-2020 Free Software Foundation, Inc. + Copyright (C) 1986-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/opcode/ns32k.h libiberty-20210106/include/opcode/ns32k.h --- libiberty-20201110/include/opcode/ns32k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/ns32k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ns32k-opcode.h -- Opcode table for National Semi 32k processor - Copyright (C) 1987-2020 Free Software Foundation, Inc. + Copyright (C) 1987-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. diff -Nru libiberty-20201110/include/opcode/pdp11.h libiberty-20210106/include/opcode/pdp11.h --- libiberty-20201110/include/opcode/pdp11.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/pdp11.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* PDP-11 opcde list. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/pj.h libiberty-20210106/include/opcode/pj.h --- libiberty-20201110/include/opcode/pj.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/pj.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Definitions for decoding the picoJava opcode table. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Contributed by Steve Chamberlain of Transmeta (sac@pobox.com). This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/opcode/pn.h libiberty-20210106/include/opcode/pn.h --- libiberty-20201110/include/opcode/pn.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/pn.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Print GOULD PN (PowerNode) instructions for GDB, the GNU debugger. - Copyright (C) 1986-2020 Free Software Foundation, Inc. + Copyright (C) 1986-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/include/opcode/ppc.h libiberty-20210106/include/opcode/ppc.h --- libiberty-20201110/include/opcode/ppc.h 2020-05-12 14:12:37.000000000 +0000 +++ libiberty-20210106/include/opcode/ppc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ppc.h -- Header file for PowerPC opcode table - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/pru.h libiberty-20210106/include/opcode/pru.h --- libiberty-20201110/include/opcode/pru.h 2020-11-10 06:49:46.000000000 +0000 +++ libiberty-20210106/include/opcode/pru.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI PRU opcode list for GAS, the GNU assembler. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Contributed by Dimitar Dimitrov This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/opcode/pyr.h libiberty-20210106/include/opcode/pyr.h --- libiberty-20201110/include/opcode/pyr.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/pyr.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* pyramid.opcode.h -- gdb initial attempt. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/riscv.h libiberty-20210106/include/opcode/riscv.h --- libiberty-20201110/include/opcode/riscv.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/opcode/riscv.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* riscv.h. RISC-V opcode list for GDB, the GNU debugger. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. Contributed by Andrew Waterman This file is part of GDB, GAS, and the GNU binutils. @@ -306,9 +306,11 @@ INSN_CLASS_M, INSN_CLASS_F, INSN_CLASS_D, - INSN_CLASS_D_AND_C, - INSN_CLASS_F_AND_C, INSN_CLASS_Q, + INSN_CLASS_F_AND_C, + INSN_CLASS_D_AND_C, + INSN_CLASS_ZICSR, + INSN_CLASS_ZIFENCEI, }; /* This structure holds information for a particular instruction. */ @@ -354,14 +356,16 @@ ISA_SPEC_CLASS_20191213 }; +#define RISCV_UNKNOWN_VERSION -1 + /* This structure holds version information for specific ISA. */ struct riscv_ext_version { const char *name; enum riscv_isa_spec_class isa_spec_class; - unsigned int major_version; - unsigned int minor_version; + int major_version; + int minor_version; }; /* All RISC-V CSR belong to one of these classes. */ @@ -476,6 +480,10 @@ M_CALL, M_J, M_LI, + M_ZEXTH, + M_ZEXTW, + M_SEXTB, + M_SEXTH, M_NUM_MACROS }; diff -Nru libiberty-20201110/include/opcode/riscv-opc.h libiberty-20210106/include/opcode/riscv-opc.h --- libiberty-20201110/include/opcode/riscv-opc.h 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/include/opcode/riscv-opc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* riscv-opc.h. RISC-V instruction opcode and CSR macros. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. Contributed by Andrew Waterman This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/rl78.h libiberty-20210106/include/opcode/rl78.h --- libiberty-20201110/include/opcode/rl78.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/rl78.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode decoder for the Renesas RL78 - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. Written by DJ Delorie This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. diff -Nru libiberty-20201110/include/opcode/rx.h libiberty-20210106/include/opcode/rx.h --- libiberty-20201110/include/opcode/rx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/rx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Opcode decoder for the Renesas RX - Copyright (C) 2008-2020 Free Software Foundation, Inc. + Copyright (C) 2008-2021 Free Software Foundation, Inc. Written by DJ Delorie This file is part of GDB, the GNU Debugger and GAS, the GNU Assembler. diff -Nru libiberty-20201110/include/opcode/s390.h libiberty-20210106/include/opcode/s390.h --- libiberty-20201110/include/opcode/s390.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/s390.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* s390.h -- Header file for S390 opcode table - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com). This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/opcode/score-datadep.h libiberty-20210106/include/opcode/score-datadep.h --- libiberty-20201110/include/opcode/score-datadep.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/score-datadep.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* score-datadep.h -- Score Instructions data dependency table - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. Contributed by: Brain.lin (brain.lin@sunplusct.com) Mei Ligang (ligang@sunnorth.com.cn) diff -Nru libiberty-20201110/include/opcode/score-inst.h libiberty-20210106/include/opcode/score-inst.h --- libiberty-20201110/include/opcode/score-inst.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/score-inst.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* score-inst.h -- Score Instructions Table - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. Contributed by: Brain.lin (brain.lin@sunplusct.com) Mei Ligang (ligang@sunnorth.com.cn) diff -Nru libiberty-20201110/include/opcode/sparc.h libiberty-20210106/include/opcode/sparc.h --- libiberty-20201110/include/opcode/sparc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/sparc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Definitions for opcode table for the sparc. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and the GNU Binutils. diff -Nru libiberty-20201110/include/opcode/spu.h libiberty-20210106/include/opcode/spu.h --- libiberty-20201110/include/opcode/spu.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/spu.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* SPU ELF support for BFD. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/spu-insns.h libiberty-20210106/include/opcode/spu-insns.h --- libiberty-20201110/include/opcode/spu-insns.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/spu-insns.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* SPU ELF support for BFD. - Copyright (C) 2006-2020 Free Software Foundation, Inc. + Copyright (C) 2006-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/opcode/tic30.h libiberty-20210106/include/opcode/tic30.h --- libiberty-20201110/include/opcode/tic30.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic30.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* tic30.h -- Header file for TI TMS320C30 opcode table - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Steven Haworth (steve@pm.cse.rmit.edu.au) This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/tic4x.h libiberty-20210106/include/opcode/tic4x.h --- libiberty-20201110/include/opcode/tic4x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic4x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Table of opcodes for the Texas Instruments TMS320C[34]X family. - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) diff -Nru libiberty-20201110/include/opcode/tic54x.h libiberty-20210106/include/opcode/tic54x.h --- libiberty-20201110/include/opcode/tic54x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic54x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* tic54x.h -- Header file for TI TMS320C54X opcode table - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Written by Timothy Wall (twall@cygnus.com) This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/tic6x-control-registers.h libiberty-20210106/include/opcode/tic6x-control-registers.h --- libiberty-20201110/include/opcode/tic6x-control-registers.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic6x-control-registers.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X control register information. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/tic6x.h libiberty-20210106/include/opcode/tic6x.h --- libiberty-20201110/include/opcode/tic6x.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic6x.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X opcode information. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/tic6x-insn-formats.h libiberty-20210106/include/opcode/tic6x-insn-formats.h --- libiberty-20201110/include/opcode/tic6x-insn-formats.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic6x-insn-formats.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X instruction format information. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/tic6x-opcode-table.h libiberty-20210106/include/opcode/tic6x-opcode-table.h --- libiberty-20201110/include/opcode/tic6x-opcode-table.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tic6x-opcode-table.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* TI C6X opcode table. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/tilegx.h libiberty-20210106/include/opcode/tilegx.h --- libiberty-20201110/include/opcode/tilegx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/tilegx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* TILE-Gx opcode information. * - * Copyright (C) 2011-2020 Free Software Foundation, Inc. + * Copyright (C) 2011-2021 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/tilepro.h libiberty-20210106/include/opcode/tilepro.h --- libiberty-20201110/include/opcode/tilepro.h 2020-06-05 08:49:03.000000000 +0000 +++ libiberty-20210106/include/opcode/tilepro.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* TILEPro opcode information. * - * Copyright (C) 2011-2020 Free Software Foundation, Inc. + * Copyright (C) 2011-2021 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/opcode/v850.h libiberty-20210106/include/opcode/v850.h --- libiberty-20201110/include/opcode/v850.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/opcode/v850.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* v850.h -- Header file for NEC V850 opcode table - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. Written by J.T. Conklin, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. diff -Nru libiberty-20201110/include/opcode/vax.h libiberty-20210106/include/opcode/vax.h --- libiberty-20201110/include/opcode/vax.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/vax.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Vax opcde list. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of GDB and GAS. diff -Nru libiberty-20201110/include/opcode/visium.h libiberty-20210106/include/opcode/visium.h --- libiberty-20201110/include/opcode/visium.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/visium.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Opcode table header for Visium. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of GDB, GAS, and GNU binutils. diff -Nru libiberty-20201110/include/opcode/wasm.h libiberty-20210106/include/opcode/wasm.h --- libiberty-20201110/include/opcode/wasm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/wasm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* WebAssembly assembler/disassembler support. - Copyright (C) 2017-2020 Free Software Foundation, Inc. + Copyright (C) 2017-2021 Free Software Foundation, Inc. This file is part of GAS, the GNU assembler. diff -Nru libiberty-20201110/include/opcode/xgate.h libiberty-20210106/include/opcode/xgate.h --- libiberty-20201110/include/opcode/xgate.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/opcode/xgate.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* xgate.h -- Freescale XGATE opcode list - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Sean Keys (skeys@ipdatasys.com) This file is part of the GNU opcodes library. diff -Nru libiberty-20201110/include/os9k.h libiberty-20210106/include/os9k.h --- libiberty-20201110/include/os9k.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/os9k.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* os9k.h - OS-9000 i386 module header definitions - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This file is part of GNU CC. diff -Nru libiberty-20201110/include/partition.h libiberty-20210106/include/partition.h --- libiberty-20201110/include/partition.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/partition.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* List implementation of a partition of consecutive integers. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by CodeSourcery, LLC. This file is part of GCC. diff -Nru libiberty-20201110/include/plugin-api.h libiberty-20210106/include/plugin-api.h --- libiberty-20201110/include/plugin-api.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/plugin-api.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* plugin-api.h -- External linker plugin API. */ -/* Copyright (C) 2009-2020 Free Software Foundation, Inc. +/* Copyright (C) 2009-2021 Free Software Foundation, Inc. Written by Cary Coutant . This file is part of binutils. diff -Nru libiberty-20201110/include/progress.h libiberty-20210106/include/progress.h --- libiberty-20201110/include/progress.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/progress.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Default definitions for progress macros. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/safe-ctype.h libiberty-20210106/include/safe-ctype.h --- libiberty-20201110/include/safe-ctype.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/safe-ctype.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* replacement macros. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Zack Weinberg . This file is part of the libiberty library. diff -Nru libiberty-20201110/include/sha1.h libiberty-20210106/include/sha1.h --- libiberty-20201110/include/sha1.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/sha1.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Declarations of functions and data types used for SHA1 sum library functions. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the diff -Nru libiberty-20201110/include/simple-object.h libiberty-20210106/include/simple-object.h --- libiberty-20201110/include/simple-object.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/simple-object.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object.h -- simple routines to read and write object files - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/include/som/aout.h libiberty-20210106/include/som/aout.h --- libiberty-20201110/include/som/aout.h 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/include/som/aout.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SOM a.out definitions for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Contributed by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/som/clock.h libiberty-20210106/include/som/clock.h --- libiberty-20201110/include/som/clock.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/som/clock.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SOM clock definition for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Contributed by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/som/internal.h libiberty-20210106/include/som/internal.h --- libiberty-20201110/include/som/internal.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/som/internal.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SOM internal definitions for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Contributed by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/som/lst.h libiberty-20210106/include/som/lst.h --- libiberty-20201110/include/som/lst.h 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/include/som/lst.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SOM lst definitions for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Contributed by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/som/reloc.h libiberty-20210106/include/som/reloc.h --- libiberty-20201110/include/som/reloc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/som/reloc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* SOM relocation definitions for BFD. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Contributed by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/sort.h libiberty-20210106/include/sort.h --- libiberty-20201110/include/sort.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/sort.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Sorting algorithms. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell . This file is part of GCC. diff -Nru libiberty-20201110/include/splay-tree.h libiberty-20210106/include/splay-tree.h --- libiberty-20201110/include/splay-tree.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/splay-tree.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* A splay-tree datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell (mark@markmitchell.com). This file is part of GCC. diff -Nru libiberty-20201110/include/symcat.h libiberty-20210106/include/symcat.h --- libiberty-20201110/include/symcat.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/symcat.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Symbol concatenation utilities. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/include/timeval-utils.h libiberty-20210106/include/timeval-utils.h --- libiberty-20201110/include/timeval-utils.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/timeval-utils.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Basic struct timeval utilities. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/include/vms/dcx.h libiberty-20210106/include/vms/dcx.h --- libiberty-20201110/include/vms/dcx.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/dcx.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format for DeCompression. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/dmt.h libiberty-20210106/include/vms/dmt.h --- libiberty-20201110/include/vms/dmt.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/dmt.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Debug Module Table. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/dsc.h libiberty-20210106/include/vms/dsc.h --- libiberty-20201110/include/vms/dsc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/dsc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Descriptors. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/dst.h libiberty-20210106/include/vms/dst.h --- libiberty-20201110/include/vms/dst.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/dst.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Debug Symbol Table. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eeom.h libiberty-20210106/include/vms/eeom.h --- libiberty-20201110/include/vms/eeom.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eeom.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended End Of Module. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/egps.h libiberty-20210106/include/vms/egps.h --- libiberty-20201110/include/vms/egps.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/egps.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Program Section Definition. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/egsd.h libiberty-20210106/include/vms/egsd.h --- libiberty-20201110/include/vms/egsd.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/egsd.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Global Symbol Directory. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/egst.h libiberty-20210106/include/vms/egst.h --- libiberty-20201110/include/vms/egst.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/egst.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Global Symbol Definition. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/egsy.h libiberty-20210106/include/vms/egsy.h --- libiberty-20201110/include/vms/egsy.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/egsy.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Global Symbol. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eiaf.h libiberty-20210106/include/vms/eiaf.h --- libiberty-20201110/include/vms/eiaf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eiaf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Activator Fixup section. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eicp.h libiberty-20210106/include/vms/eicp.h --- libiberty-20201110/include/vms/eicp.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eicp.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image section Change Protection. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eidc.h libiberty-20210106/include/vms/eidc.h --- libiberty-20201110/include/vms/eidc.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eidc.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Ident Consistency check. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eiha.h libiberty-20210106/include/vms/eiha.h --- libiberty-20201110/include/vms/eiha.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eiha.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Activation. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eihd.h libiberty-20210106/include/vms/eihd.h --- libiberty-20201110/include/vms/eihd.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eihd.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Header. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eihi.h libiberty-20210106/include/vms/eihi.h --- libiberty-20201110/include/vms/eihi.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eihi.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Identification. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eihs.h libiberty-20210106/include/vms/eihs.h --- libiberty-20201110/include/vms/eihs.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eihs.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Symbols and debug table. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eihvn.h libiberty-20210106/include/vms/eihvn.h --- libiberty-20201110/include/vms/eihvn.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eihvn.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Header Version. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eisd.h libiberty-20210106/include/vms/eisd.h --- libiberty-20201110/include/vms/eisd.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eisd.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Image Section Descriptor. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/emh.h libiberty-20210106/include/vms/emh.h --- libiberty-20201110/include/vms/emh.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/emh.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Module Header. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/eobjrec.h libiberty-20210106/include/vms/eobjrec.h --- libiberty-20201110/include/vms/eobjrec.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/eobjrec.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Object Records. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/esdf.h libiberty-20210106/include/vms/esdf.h --- libiberty-20201110/include/vms/esdf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/esdf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended GSD Global Symbol Definition. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/esdfm.h libiberty-20210106/include/vms/esdfm.h --- libiberty-20201110/include/vms/esdfm.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/esdfm.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Symbol Definition for version Mask. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/esdfv.h libiberty-20210106/include/vms/esdfv.h --- libiberty-20201110/include/vms/esdfv.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/esdfv.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Symbol Def for Vectored symbols. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/esgps.h libiberty-20210106/include/vms/esgps.h --- libiberty-20201110/include/vms/esgps.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/esgps.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Shared Program Section Definition. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/esrf.h libiberty-20210106/include/vms/esrf.h --- libiberty-20201110/include/vms/esrf.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/esrf.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended GSD Global Symbol Reference. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/etir.h libiberty-20210106/include/vms/etir.h --- libiberty-20201110/include/vms/etir.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/etir.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Extended Text Information and Relocation. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/internal.h libiberty-20210106/include/vms/internal.h --- libiberty-20201110/include/vms/internal.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/internal.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS internal format. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/lbr.h libiberty-20210106/include/vms/lbr.h --- libiberty-20201110/include/vms/lbr.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/lbr.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Libraries. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/prt.h libiberty-20210106/include/vms/prt.h --- libiberty-20201110/include/vms/prt.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/prt.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Protection values. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vms/shl.h libiberty-20210106/include/vms/shl.h --- libiberty-20201110/include/vms/shl.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vms/shl.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Alpha VMS external format of Shareable image List. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Tristan Gingold , AdaCore. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/vtv-change-permission.h libiberty-20210106/include/vtv-change-permission.h --- libiberty-20201110/include/vtv-change-permission.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/vtv-change-permission.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2013-2020 Free Software Foundation, Inc. +/* Copyright (C) 2013-2021 Free Software Foundation, Inc. This file is part of GCC. diff -Nru libiberty-20201110/include/xregex2.h libiberty-20210106/include/xregex2.h --- libiberty-20201110/include/xregex2.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/xregex2.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* Definitions for data structures and routines for the regular expression library, version 0.12. - Copyright (C) 1985-2020 Free Software Foundation, Inc. + Copyright (C) 1985-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. diff -Nru libiberty-20201110/include/xtensa-config.h libiberty-20210106/include/xtensa-config.h --- libiberty-20201110/include/xtensa-config.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/xtensa-config.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Xtensa configuration settings. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. Contributed by Bob Wilson (bob.wilson@acm.org) at Tensilica. This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/include/xtensa-isa.h libiberty-20210106/include/xtensa-isa.h --- libiberty-20201110/include/xtensa-isa.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/xtensa-isa.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Interface definition for configurable Xtensa ISA support. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. diff -Nru libiberty-20201110/include/xtensa-isa-internal.h libiberty-20210106/include/xtensa-isa-internal.h --- libiberty-20201110/include/xtensa-isa-internal.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/include/xtensa-isa-internal.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Internal definitions for configurable Xtensa ISA support. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -53,29 +53,29 @@ typedef int (*xtensa_format_decode_fn) (const xtensa_insnbuf); typedef int (*xtensa_length_decode_fn) (const unsigned char *); -typedef struct xtensa_format_internal_struct +typedef const struct xtensa_format_internal_struct { const char *name; /* Instruction format name. */ int length; /* Instruction length in bytes. */ xtensa_format_encode_fn encode_fn; int num_slots; - int *slot_id; /* Array[num_slots] of slot IDs. */ + const int *slot_id; /* Array[num_slots] of slot IDs. */ } xtensa_format_internal; -typedef struct xtensa_slot_internal_struct +typedef const struct xtensa_slot_internal_struct { const char *name; /* Not necessarily unique. */ const char *format; int position; xtensa_get_slot_fn get_fn; xtensa_set_slot_fn set_fn; - xtensa_get_field_fn *get_field_fns; /* Array[field_id]. */ - xtensa_set_field_fn *set_field_fns; /* Array[field_id]. */ + const xtensa_get_field_fn *get_field_fns; /* Array[field_id]. */ + const xtensa_set_field_fn *set_field_fns; /* Array[field_id]. */ xtensa_opcode_decode_fn opcode_decode_fn; const char *nop_name; } xtensa_slot_internal; -typedef struct xtensa_operand_internal_struct +typedef const struct xtensa_operand_internal_struct { const char *name; int field_id; @@ -88,7 +88,7 @@ xtensa_undo_reloc_fn undo_reloc; /* Undo a PC-relative relocation. */ } xtensa_operand_internal; -typedef struct xtensa_arg_internal_struct +typedef const struct xtensa_arg_internal_struct { union { int operand_id; /* For normal operands. */ @@ -97,7 +97,7 @@ char inout; /* Direction: 'i', 'o', or 'm'. */ } xtensa_arg_internal; -typedef struct xtensa_iclass_internal_struct +typedef const struct xtensa_iclass_internal_struct { int num_operands; /* Size of "operands" array. */ xtensa_arg_internal *operands; /* Array[num_operands]. */ @@ -109,17 +109,17 @@ xtensa_interface *interfaceOperands; /* Array[num_interfaceOperands]. */ } xtensa_iclass_internal; -typedef struct xtensa_opcode_internal_struct +typedef const struct xtensa_opcode_internal_struct { const char *name; /* Opcode mnemonic. */ int iclass_id; /* Iclass for this opcode. */ uint32 flags; /* See XTENSA_OPCODE_* flags. */ - xtensa_opcode_encode_fn *encode_fns; /* Array[slot_id]. */ + const xtensa_opcode_encode_fn *encode_fns; /* Array[slot_id]. */ int num_funcUnit_uses; /* Number of funcUnit_use entries. */ xtensa_funcUnit_use *funcUnit_uses; /* Array[num_funcUnit_uses]. */ } xtensa_opcode_internal; -typedef struct xtensa_regfile_internal_struct +typedef const struct xtensa_regfile_internal_struct { const char *name; /* Full name of the regfile. */ const char *shortname; /* Abbreviated name. */ @@ -128,7 +128,7 @@ int num_entries; /* Number of registers. */ } xtensa_regfile_internal; -typedef struct xtensa_interface_internal_struct +typedef const struct xtensa_interface_internal_struct { const char *name; /* Interface name. */ int num_bits; /* Width of the interface. */ @@ -137,20 +137,20 @@ char inout; /* "i" or "o". */ } xtensa_interface_internal; -typedef struct xtensa_funcUnit_internal_struct +typedef const struct xtensa_funcUnit_internal_struct { const char *name; /* Functional unit name. */ int num_copies; /* Number of instances. */ } xtensa_funcUnit_internal; -typedef struct xtensa_state_internal_struct +typedef const struct xtensa_state_internal_struct { const char *name; /* State name. */ int num_bits; /* Number of state bits. */ uint32 flags; /* See XTENSA_STATE_* flags. */ } xtensa_state_internal; -typedef struct xtensa_sysreg_internal_struct +typedef const struct xtensa_sysreg_internal_struct { const char *name; /* Register name. */ int number; /* Register number. */ @@ -228,7 +228,4 @@ extern int xtensa_isa_name_compare (const void *, const void *); -extern xtensa_isa_status xtisa_errno; -extern char xtisa_error_msg[]; - #endif /* !XTENSA_ISA_INTERNAL_H */ diff -Nru libiberty-20201110/libiberty/argv.c libiberty-20210106/libiberty/argv.c --- libiberty-20201110/libiberty/argv.c 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/libiberty/argv.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Create and destroy argument vectors (argv's) - Copyright (C) 1992-2020 Free Software Foundation, Inc. + Copyright (C) 1992-2021 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/asprintf.c libiberty-20210106/libiberty/asprintf.c --- libiberty-20201110/libiberty/asprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/asprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Like sprintf but provides a pointer to malloc'd storage, which must be freed by the caller. - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/ChangeLog libiberty-20210106/libiberty/ChangeLog --- libiberty-20201110/libiberty/ChangeLog 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/ChangeLog 2021-01-06 10:26:58.000000000 +0000 @@ -1,23 +1,98 @@ -2020-09-23 Mark Wielaard +2021-01-04 Martin Liska + + * strverscmp.c: Convert to utf8 from iso8859. + +2020-12-22 Jason Merrill + + PR c++/67343 + * cp-demangle.h (struct d_info): Add unresolved_name_state. + * cp-demangle.c (d_prefix): Add subst parm. + (d_nested_name): Pass it. + (d_unresolved_name): Split out from... + (d_expression_1): ...here. + (d_demangle_callback): Maybe retry with old sr mangling. + * testsuite/demangle-expected: Add test. + +2020-12-21 Jason Merrill + + * cp-demangle.c (d_expression_1): Recognize qualified-id + on RHS of dt/pt. + * testsuite/demangle-expected: Add test. + +2020-12-21 Jason Merrill + + * cp-demangle.c (d_unqualified_name): Clear is_expression. + * testsuite/demangle-expected: Add tests. + +2020-11-25 Matthew Malcomson + + * configure: Regenerate. + * configure.ac: Avoid using sanitizer. + +2020-11-13 Eduard-Mihai Burtescu + + * rust-demangle.c (struct rust_demangler): Add + skipping_printing and bound_lifetime_depth fields. + (eat): Add (v0-only). + (parse_integer_62): Add (v0-only). + (parse_opt_integer_62): Add (v0-only). + (parse_disambiguator): Add (v0-only). + (struct rust_mangled_ident): Add punycode{,_len} fields. + (parse_ident): Support v0 identifiers. + (print_str): Respect skipping_printing. + (print_uint64): Add (v0-only). + (print_uint64_hex): Add (v0-only). + (print_ident): Respect skipping_printing, + Support v0 identifiers. + (print_lifetime_from_index): Add (v0-only). + (demangle_binder): Add (v0-only). + (demangle_path): Add (v0-only). + (demangle_generic_arg): Add (v0-only). + (demangle_type): Add (v0-only). + (demangle_path_maybe_open_generics): Add (v0-only). + (demangle_dyn_trait): Add (v0-only). + (demangle_const): Add (v0-only). + (demangle_const_uint): Add (v0-only). + (basic_type): Add (v0-only). + (rust_demangle_callback): Support v0 symbols. + * testsuite/rust-demangle-expected: Add v0 testcases. + +2020-11-13 Seija Kijin + + * strstr.c (strstr): Make implementation ANSI/POSIX compliant. + +2020-11-11 Patrick Palka + + PR c++/88115 + * cp-demangle.c (d_print_comp_inner) + : Don't print the + "operator " prefix for __alignof__. + : Always print parens around the + operand of __alignof__. + * testsuite/demangle-expected: Test demangling for __alignof__. + +2020-11-09 Christophe Lyon + + * pex-win32.c (pex_win32_exec_child): Initialize orig_err. + +2020-10-06 Martin Liska + + PR lto/97290 + * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): + Use sh_link of a .symtab_shndx section. + +2020-09-24 Mark Wielaard - Sync with GCC * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT and DW_UT_END. -2020-09-11 Felix Willgerodt - - Sync with GCC - 2020-09-08 Felix Willgerodt +2020-09-08 Felix Willgerodt * floatformat.c (floatformat_bfloat16_big): New. (floatformat_bfloat16_little): New. 2020-09-08 Alan Modra - * configure: Regenerate. - - Sync from gcc - 2020-09-08 Alan Modra * d-demangle.c: Include limits.h. (ULONG_MAX, UINT_MAX): Provide fall-back definition. (dlang_number): Simplify and correct overflow test. Only @@ -42,32 +117,42 @@ unsigned long variables. * testsuite/d-demangle-expected: Add new tests. - 2020-08-04 Iain Buclaw +2020-08-26 Iain Buclaw + * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref' parameter storage classes. (dlang_type): Remove identifier type. * testsuite/d-demangle-expected: Update tests. - 2020-08-03 Richard Biener +2020-08-03 Richard Biener + PR lto/96385 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Localize global UNDEFs and reuse the prevailing name. - 2020-07-10 Ian Lance Taylor +2020-07-30 H.J. Lu + + PR bootstrap/96202 + * configure: Regenerated. + +2020-07-14 Ian Lance Taylor + PR demangler/96143 * cp-demangle.c (d_lambda): Don't add substitution candidate. * testsuite/demangle-expected: Update a few existing test cases accordingly, and add a new test case. - 2020-07-04 Jason Merrill +2020-07-10 Jason Merrill + * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX. (d_expression_1): Handle di and dX. (is_designated_init, d_maybe_print_designated_init): New. (d_print_comp_inner): Use d_maybe_print_designated_init. * testsuite/demangle-expected: Add designator tests. - 2020-06-25 Nick Clifton +2020-06-26 Nick Clifton + * bsearch.c (bsearch): Remove use of register keyword. * bsearch_r.c (bsearch_r): Likewise. diff -Nru libiberty-20201110/libiberty/choose-temp.c libiberty-20210106/libiberty/choose-temp.c --- libiberty-20201110/libiberty/choose-temp.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/choose-temp.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Utility to pick a temporary filename prefix. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/clock.c libiberty-20210106/libiberty/clock.c --- libiberty-20201110/libiberty/clock.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/clock.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* ANSI-compatible clock function. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the diff -Nru libiberty-20201110/libiberty/concat.c libiberty-20210106/libiberty/concat.c --- libiberty-20201110/libiberty/concat.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/concat.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Concatenate variable number of strings. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/configure libiberty-20210106/libiberty/configure --- libiberty-20201110/libiberty/configure 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/configure 2021-01-06 10:26:58.000000000 +0000 @@ -5264,6 +5264,7 @@ NOASANFLAG= case " ${CFLAGS} " in *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; + *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;; esac diff -Nru libiberty-20201110/libiberty/configure.ac libiberty-20210106/libiberty/configure.ac --- libiberty-20201110/libiberty/configure.ac 2020-05-12 14:12:37.000000000 +0000 +++ libiberty-20210106/libiberty/configure.ac 2021-01-06 10:26:58.000000000 +0000 @@ -240,6 +240,7 @@ NOASANFLAG= case " ${CFLAGS} " in *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; + *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;; esac AC_SUBST(NOASANFLAG) diff -Nru libiberty-20201110/libiberty/copying-lib.texi libiberty-20210106/libiberty/copying-lib.texi --- libiberty-20201110/libiberty/copying-lib.texi 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/copying-lib.texi 2021-01-04 12:43:12.000000000 +0000 @@ -5,7 +5,7 @@ @center Version 2.1, February 1999 @display -Copyright @copyright{} 1991-2020 Free Software Foundation, Inc. +Copyright @copyright{} 1991-2021 Free Software Foundation, Inc. 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies diff -Nru libiberty-20201110/libiberty/cp-demangle.c libiberty-20210106/libiberty/cp-demangle.c --- libiberty-20201110/libiberty/cp-demangle.c 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/cp-demangle.c 2021-01-06 10:26:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Demangler for g++ V3 ABI. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of the libiberty library, which is part of GCC. @@ -429,7 +429,7 @@ static struct demangle_component *d_nested_name (struct d_info *); -static struct demangle_component *d_prefix (struct d_info *); +static struct demangle_component *d_prefix (struct d_info *, int); static struct demangle_component *d_unqualified_name (struct d_info *); @@ -1510,7 +1510,7 @@ once we have something to attach it to. */ rqual = d_ref_qualifier (di, NULL); - *pret = d_prefix (di); + *pret = d_prefix (di, 1); if (*pret == NULL) return NULL; @@ -1536,10 +1536,12 @@ ::= <(template) unqualified-name> ::= ::= -*/ + + SUBST is true if we should add substitutions (as normal), false + if not (in an unresolved-name). */ static struct demangle_component * -d_prefix (struct d_info *di) +d_prefix (struct d_info *di, int subst) { struct demangle_component *ret = NULL; @@ -1605,7 +1607,7 @@ else ret = d_make_comp (di, comb_type, ret, dc); - if (peek != 'S' && d_peek_char (di) != 'E') + if (peek != 'S' && d_peek_char (di) != 'E' && subst) { if (! d_add_substitution (di, ret)) return NULL; @@ -1632,9 +1634,15 @@ ret = d_source_name (di); else if (IS_LOWER (peek)) { + int was_expr = di->is_expression; if (peek == 'o' && d_peek_next_char (di) == 'n') - d_advance (di, 2); + { + d_advance (di, 2); + /* Treat cv as naming a conversion operator. */ + di->is_expression = 0; + } ret = d_operator_name (di); + di->is_expression = was_expr; if (ret != NULL && ret->type == DEMANGLE_COMPONENT_OPERATOR) { di->expansion += sizeof "operator" + ret->u.s_operator.op->len - 2; @@ -3285,14 +3293,58 @@ || code[0] == 'c' || code[0] == 'r')); } +/* ::= [gs] # x or (with "gs") ::x + ::= sr # T::x / decltype(p)::x + # T::N::x /decltype(p)::N::x + ::= srN + E + # A::x, N::y, A::z; "gs" means leading "::" + ::= [gs] sr + E + + "gs" is handled elsewhere, as a unary operator. */ + +static struct demangle_component * +d_unresolved_name (struct d_info *di) +{ + struct demangle_component *type; + struct demangle_component *name; + char peek; + + /* Consume the "sr". */ + d_advance (di, 2); + + peek = d_peek_char (di); + if (di->unresolved_name_state + && (IS_DIGIT (peek) + || IS_LOWER (peek) + || peek == 'C' + || peek == 'U' + || peek == 'L')) + { + /* The third production is ambiguous with the old unresolved-name syntax + of ; in the old mangling, A::x was mangled + as sr1A1x, now sr1AE1x. So we first try to demangle using the new + mangling, then with the old if that fails. */ + di->unresolved_name_state = -1; + type = d_prefix (di, 0); + if (d_peek_char (di) == 'E') + d_advance (di, 1); + } + else + type = cplus_demangle_type (di); + name = d_unqualified_name (di); + if (d_peek_char (di) == 'I') + name = d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, name, + d_template_args (di)); + return d_make_comp (di, DEMANGLE_COMPONENT_QUAL_NAME, type, name); +} + /* ::= <(unary) operator-name> ::= <(binary) operator-name> ::= <(trinary) operator-name> ::= cl + E ::= st ::= - ::= sr - ::= sr + ::= ::= ::= @@ -3302,7 +3354,7 @@ # [expr ... expr] = expr */ -static inline struct demangle_component * +static struct demangle_component * d_expression_1 (struct d_info *di) { char peek; @@ -3313,20 +3365,7 @@ else if (peek == 'T') return d_template_param (di); else if (peek == 's' && d_peek_next_char (di) == 'r') - { - struct demangle_component *type; - struct demangle_component *name; - - d_advance (di, 2); - type = cplus_demangle_type (di); - name = d_unqualified_name (di); - if (d_peek_char (di) != 'I') - return d_make_comp (di, DEMANGLE_COMPONENT_QUAL_NAME, type, name); - else - return d_make_comp (di, DEMANGLE_COMPONENT_QUAL_NAME, type, - d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, name, - d_template_args (di))); - } + return d_unresolved_name (di); else if (peek == 's' && d_peek_next_char (di) == 'p') { d_advance (di, 2); @@ -3470,10 +3509,22 @@ right = d_exprlist (di, 'E'); else if (!strcmp (code, "dt") || !strcmp (code, "pt")) { - right = d_unqualified_name (di); - if (d_peek_char (di) == 'I') - right = d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, - right, d_template_args (di)); + peek = d_peek_char (di); + /* These codes start a qualified name. */ + if ((peek == 'g' && d_peek_next_char (di) == 's') + || (peek == 's' && d_peek_next_char (di) == 'r')) + right = d_expression_1 (di); + else + { + /* Otherwise it's an unqualified name. We use + d_unqualified_name rather than d_expression_1 here for + old mangled names that didn't add 'on' before operator + names. */ + right = d_unqualified_name (di); + if (d_peek_char (di) == 'I') + right = d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, + right, d_template_args (di)); + } } else right = d_expression_1 (di); @@ -5458,9 +5509,18 @@ } case DEMANGLE_COMPONENT_EXTENDED_OPERATOR: - d_append_string (dpi, "operator "); - d_print_comp (dpi, options, dc->u.s_extended_operator.name); - return; + { + struct demangle_component *name = dc->u.s_extended_operator.name; + if (name->type == DEMANGLE_COMPONENT_NAME + && !strncmp (name->u.s_name.s, "__alignof__", name->u.s_name.len)) + d_print_comp (dpi, options, dc->u.s_extended_operator.name); + else + { + d_append_string (dpi, "operator "); + d_print_comp (dpi, options, dc->u.s_extended_operator.name); + } + return; + } case DEMANGLE_COMPONENT_CONVERSION: d_append_string (dpi, "operator "); @@ -5525,8 +5585,14 @@ if (code && !strcmp (code, "gs")) /* Avoid parens after '::'. */ d_print_comp (dpi, options, operand); - else if (code && !strcmp (code, "st")) - /* Always print parens for sizeof (type). */ + else if ((code && !strcmp (code, "st")) + || (op->type == DEMANGLE_COMPONENT_EXTENDED_OPERATOR + && (op->u.s_extended_operator.name->type + == DEMANGLE_COMPONENT_NAME) + && !strncmp (op->u.s_extended_operator.name->u.s_name.s, + "__alignof__", + op->u.s_extended_operator.name->u.s_name.len))) + /* Always print parens for sizeof (type) and __alignof__. */ { d_append_char (dpi, '('); d_print_comp (dpi, options, operand); @@ -6364,6 +6430,9 @@ type = DCT_TYPE; } + di.unresolved_name_state = 1; + + again: cplus_demangle_init_info (mangled, options, strlen (mangled), &di); /* PR 87675 - Check for a mangled string that is so long @@ -6422,6 +6491,13 @@ if (((options & DMGL_PARAMS) != 0) && d_peek_char (&di) != '\0') dc = NULL; + /* See discussion in d_unresolved_name. */ + if (dc == NULL && di.unresolved_name_state == -1) + { + di.unresolved_name_state = 0; + goto again; + } + #ifdef CP_DEMANGLE_DEBUG d_dump (dc, 0); #endif diff -Nru libiberty-20201110/libiberty/cp-demangle.h libiberty-20210106/libiberty/cp-demangle.h --- libiberty-20201110/libiberty/cp-demangle.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/cp-demangle.h 2021-01-06 10:26:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Internal demangler interface for g++ V3 ABI. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of the libiberty library, which is part of GCC. @@ -122,6 +122,10 @@ /* Non-zero if we are parsing the type operand of a conversion operator, but not when in an expression. */ int is_conversion; + /* 1: using new unresolved-name grammar. + -1: using new unresolved-name grammar and saw an unresolved-name. + 0: using old unresolved-name grammar. */ + int unresolved_name_state; /* If DMGL_NO_RECURSE_LIMIT is not active then this is set to the current recursion level. */ unsigned int recursion_level; diff -Nru libiberty-20201110/libiberty/cp-demint.c libiberty-20210106/libiberty/cp-demint.c --- libiberty-20201110/libiberty/cp-demint.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/cp-demint.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Demangler component interface functions. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of the libiberty library, which is part of GCC. diff -Nru libiberty-20201110/libiberty/cplus-dem.c libiberty-20210106/libiberty/cplus-dem.c --- libiberty-20201110/libiberty/cplus-dem.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/cplus-dem.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Demangler for GNU C++ - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.uucp) Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling Modified by Satish Pai (pai@apollo.hp.com) for HP demangling diff -Nru libiberty-20201110/libiberty/crc32.c libiberty-20210106/libiberty/crc32.c --- libiberty-20201110/libiberty/crc32.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/crc32.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* crc32.c - Copyright (C) 2009-2020 Free Software Foundation, Inc. + Copyright (C) 2009-2021 Free Software Foundation, Inc. This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/d-demangle.c libiberty-20210106/libiberty/d-demangle.c --- libiberty-20201110/libiberty/d-demangle.c 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/d-demangle.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Demangler for the D programming language - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Written by Iain Buclaw (ibuclaw@gdcproject.org) This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/_doprnt.c libiberty-20210106/libiberty/_doprnt.c --- libiberty-20201110/libiberty/_doprnt.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/_doprnt.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide a version of _doprnt in terms of fprintf. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/dwarfnames.c libiberty-20210106/libiberty/dwarfnames.c --- libiberty-20201110/libiberty/dwarfnames.c 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/dwarfnames.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Names of various DWARF tags. - Copyright (C) 2012-2020 Free Software Foundation, Inc. + Copyright (C) 2012-2021 Free Software Foundation, Inc. This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/dyn-string.c libiberty-20210106/libiberty/dyn-string.c --- libiberty-20201110/libiberty/dyn-string.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/dyn-string.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* An abstract string datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell (mark@markmitchell.com). This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/fdmatch.c libiberty-20210106/libiberty/fdmatch.c --- libiberty-20201110/libiberty/fdmatch.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/fdmatch.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Compare two open file descriptors to see if they refer to the same file. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/fibheap.c libiberty-20210106/libiberty/fibheap.c --- libiberty-20201110/libiberty/fibheap.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/fibheap.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* A Fibonacci heap datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Daniel Berlin (dan@cgsoftware.com). This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/filedescriptor.c libiberty-20210106/libiberty/filedescriptor.c --- libiberty-20201110/libiberty/filedescriptor.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/filedescriptor.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* File descriptor related functions. - Copyright (C) 2019-2020 Free Software Foundation, Inc. + Copyright (C) 2019-2021 Free Software Foundation, Inc. This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/filename_cmp.c libiberty-20210106/libiberty/filename_cmp.c --- libiberty-20201110/libiberty/filename_cmp.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/filename_cmp.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* File name comparison routine. - Copyright (C) 2007-2020 Free Software Foundation, Inc. + Copyright (C) 2007-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/libiberty/floatformat.c libiberty-20210106/libiberty/floatformat.c --- libiberty-20201110/libiberty/floatformat.c 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/floatformat.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* IEEE floating point support routines, for GDB, the GNU Debugger. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of GDB. diff -Nru libiberty-20201110/libiberty/fnmatch.c libiberty-20210106/libiberty/fnmatch.c --- libiberty-20201110/libiberty/fnmatch.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/fnmatch.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2020 Free Software Foundation, Inc. +/* Copyright (C) 1991-2021 Free Software Foundation, Inc. NOTE: This source is derived from an old version taken from the GNU C Library (glibc). diff -Nru libiberty-20201110/libiberty/fopen_unlocked.c libiberty-20210106/libiberty/fopen_unlocked.c --- libiberty-20201110/libiberty/fopen_unlocked.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/fopen_unlocked.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement fopen_unlocked and related functions. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/gather-docs libiberty-20210106/libiberty/gather-docs --- libiberty-20201110/libiberty/gather-docs 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/gather-docs 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/perl # -*- perl -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is part of the libiberty library. # Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/getopt1.c libiberty-20210106/libiberty/getopt1.c --- libiberty-20201110/libiberty/getopt1.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/getopt1.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987-2020 Free Software Foundation, Inc. + Copyright (C) 1987-2021 Free Software Foundation, Inc. NOTE: This source is derived from an old version taken from the GNU C Library (glibc). diff -Nru libiberty-20201110/libiberty/getopt.c libiberty-20210106/libiberty/getopt.c --- libiberty-20201110/libiberty/getopt.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/getopt.c 2021-01-04 12:43:12.000000000 +0000 @@ -3,7 +3,7 @@ "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! - Copyright (C) 1987-2020 Free Software Foundation, Inc. + Copyright (C) 1987-2021 Free Software Foundation, Inc. NOTE: This source is derived from an old version taken from the GNU C Library (glibc). diff -Nru libiberty-20201110/libiberty/getruntime.c libiberty-20210106/libiberty/getruntime.c --- libiberty-20201110/libiberty/getruntime.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/getruntime.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Return time used so far, in microseconds. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/hashtab.c libiberty-20210106/libiberty/hashtab.c --- libiberty-20201110/libiberty/hashtab.c 2020-04-09 10:48:11.000000000 +0000 +++ libiberty-20210106/libiberty/hashtab.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* An expandable hash tables datatype. - Copyright (C) 1999-2020 Free Software Foundation, Inc. + Copyright (C) 1999-2021 Free Software Foundation, Inc. Contributed by Vladimir Makarov (vmakarov@cygnus.com). This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/hex.c libiberty-20210106/libiberty/hex.c --- libiberty-20201110/libiberty/hex.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/hex.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Hex character manipulation support. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/lbasename.c libiberty-20210106/libiberty/lbasename.c --- libiberty-20201110/libiberty/lbasename.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/lbasename.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Libiberty basename. Like basename, but is not overridden by the system C library. - Copyright (C) 2001-2020 Free Software Foundation, Inc. + Copyright (C) 2001-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/libiberty.texi libiberty-20210106/libiberty/libiberty.texi --- libiberty-20201110/libiberty/libiberty.texi 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/libiberty.texi 2021-01-04 12:43:12.000000000 +0000 @@ -24,7 +24,7 @@ @ifinfo This manual describes the GNU @libib library of utility subroutines. -Copyright @copyright{} 2001-2020 Free Software Foundation, Inc. +Copyright @copyright{} 2001-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 @@ -50,7 +50,7 @@ @vskip 0pt plus 1filll -Copyright @copyright{} 2001-2020 Free Software Foundation, Inc. +Copyright @copyright{} 2001-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 diff -Nru libiberty-20201110/libiberty/lrealpath.c libiberty-20210106/libiberty/lrealpath.c --- libiberty-20201110/libiberty/lrealpath.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/lrealpath.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* Libiberty realpath. Like realpath, but more consistent behavior. Based on gdb_realpath from GDB. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/maint-tool libiberty-20210106/libiberty/maint-tool --- libiberty-20201110/libiberty/maint-tool 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/maint-tool 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/perl # -*- perl -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is part of the libiberty library. # Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/Makefile.in libiberty-20210106/libiberty/Makefile.in --- libiberty-20201110/libiberty/Makefile.in 2020-07-01 13:57:45.000000000 +0000 +++ libiberty-20210106/libiberty/Makefile.in 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ # Makefile for the libiberty library. # Originally written by K. Richard Pixley . # -# Copyright (C) 1990-2020 Free Software Foundation, Inc. +# Copyright (C) 1990-2021 Free Software Foundation, Inc. # # This file is part of the libiberty library. # Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/make-relative-prefix.c libiberty-20210106/libiberty/make-relative-prefix.c --- libiberty-20201110/libiberty/make-relative-prefix.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/make-relative-prefix.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Relative (relocatable) prefix support. - Copyright (C) 1987-2020 Free Software Foundation, Inc. + Copyright (C) 1987-2021 Free Software Foundation, Inc. This file is part of libiberty. diff -Nru libiberty-20201110/libiberty/make-temp-file.c libiberty-20210106/libiberty/make-temp-file.c --- libiberty-20201110/libiberty/make-temp-file.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/make-temp-file.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Utility to pick a temporary filename prefix. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/md5.c libiberty-20210106/libiberty/md5.c --- libiberty-20201110/libiberty/md5.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/md5.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* md5.c - Functions to compute MD5 message digest of files or memory blocks according to the definition of MD5 in RFC 1321 from April 1992. - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2021 Free Software Foundation, Inc. NOTE: This source is derived from an old version taken from the GNU C Library (glibc). diff -Nru libiberty-20201110/libiberty/memmem.c libiberty-20210106/libiberty/memmem.c --- libiberty-20201110/libiberty/memmem.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/memmem.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2020 Free Software Foundation, Inc. +/* Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify diff -Nru libiberty-20201110/libiberty/mempcpy.c libiberty-20210106/libiberty/mempcpy.c --- libiberty-20201110/libiberty/mempcpy.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/mempcpy.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the mempcpy function. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/mkstemps.c libiberty-20210106/libiberty/mkstemps.c --- libiberty-20201110/libiberty/mkstemps.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/mkstemps.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2020 Free Software Foundation, Inc. +/* Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is derived from mkstemp.c from the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/objalloc.c libiberty-20210106/libiberty/objalloc.c --- libiberty-20201110/libiberty/objalloc.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/objalloc.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* objalloc.c -- routines to allocate memory for objects - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Solutions. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/obstack.c libiberty-20210106/libiberty/obstack.c --- libiberty-20201110/libiberty/obstack.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/obstack.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* obstack.c - subroutines used implicitly by object stack macros - Copyright (C) 1988-2020 Free Software Foundation, Inc. + Copyright (C) 1988-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/partition.c libiberty-20210106/libiberty/partition.c --- libiberty-20201110/libiberty/partition.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/partition.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* List implementation of a partition of consecutive integers. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by CodeSourcery, LLC. This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/pex-common.c libiberty-20210106/libiberty/pex-common.c --- libiberty-20201110/libiberty/pex-common.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-common.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Common code for executing a program in a sub-process. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/pex-common.h libiberty-20210106/libiberty/pex-common.h --- libiberty-20201110/libiberty/pex-common.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-common.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Shared logic. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pex-djgpp.c libiberty-20210106/libiberty/pex-djgpp.c --- libiberty-20201110/libiberty/pex-djgpp.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-djgpp.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. DJGPP specialization. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pexecute.c libiberty-20210106/libiberty/pexecute.c --- libiberty-20201110/libiberty/pexecute.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pexecute.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pex-msdos.c libiberty-20210106/libiberty/pex-msdos.c --- libiberty-20201110/libiberty/pex-msdos.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-msdos.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Generic MSDOS specialization. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pex-one.c libiberty-20210106/libiberty/pex-one.c --- libiberty-20201110/libiberty/pex-one.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-one.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Execute a program and wait for a result. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pex-unix.c libiberty-20210106/libiberty/pex-unix.c --- libiberty-20201110/libiberty/pex-unix.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-unix.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Generic Unix version (also used for UWIN and VMS). - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/pex-win32.c libiberty-20210106/libiberty/pex-win32.c --- libiberty-20201110/libiberty/pex-win32.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/pex-win32.c 2021-01-06 10:26:58.000000000 +0000 @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Generic Win32 specialization. - Copyright (C) 1996-2020 Free Software Foundation, Inc. + Copyright (C) 1996-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -771,7 +771,7 @@ OSVERSIONINFO version_info; STARTUPINFO si; PROCESS_INFORMATION pi; - int orig_out, orig_in, orig_err; + int orig_out, orig_in, orig_err = 0; BOOL separate_stderr = !(flags & PEX_STDERR_TO_STDOUT); /* Ensure we have inheritable descriptors to pass to the child. */ diff -Nru libiberty-20201110/libiberty/physmem.c libiberty-20210106/libiberty/physmem.c --- libiberty-20201110/libiberty/physmem.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/physmem.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Calculate the size of physical memory. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru libiberty-20201110/libiberty/putenv.c libiberty-20210106/libiberty/putenv.c --- libiberty-20201110/libiberty/putenv.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/putenv.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2020 Free Software Foundation, Inc. +/* Copyright (C) 1991-2021 Free Software Foundation, Inc. This file based on putenv.c in the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/regex.c libiberty-20210106/libiberty/regex.c --- libiberty-20201110/libiberty/regex.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/regex.c 2021-01-04 12:43:12.000000000 +0000 @@ -3,7 +3,7 @@ (Implements POSIX draft P1003.2/D11.2, except for some of the internationalization features.) - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/rust-demangle.c libiberty-20210106/libiberty/rust-demangle.c --- libiberty-20201110/libiberty/rust-demangle.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/rust-demangle.c 2021-01-06 10:26:58.000000000 +0000 @@ -1,6 +1,7 @@ /* Demangler for the Rust programming language - Copyright (C) 2016-2020 Free Software Foundation, Inc. + Copyright (C) 2016-2021 Free Software Foundation, Inc. Written by David Tolnay (dtolnay@gmail.com). + Rewritten by Eduard-Mihai Burtescu (eddyb@lyken.rs) for v0 support. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -64,11 +65,16 @@ /* Non-zero if any error occurred. */ int errored; + /* Non-zero if nothing should be printed. */ + int skipping_printing; + /* Non-zero if printing should be verbose (e.g. include hashes). */ int verbose; /* Rust mangling version, with legacy mangling being -1. */ int version; + + uint64_t bound_lifetime_depth; }; /* Parsing functions. */ @@ -81,6 +87,18 @@ return 0; } +static int +eat (struct rust_demangler *rdm, char c) +{ + if (peek (rdm) == c) + { + rdm->next++; + return 1; + } + else + return 0; +} + static char next (struct rust_demangler *rdm) { @@ -92,11 +110,87 @@ return c; } +static uint64_t +parse_integer_62 (struct rust_demangler *rdm) +{ + char c; + uint64_t x; + + if (eat (rdm, '_')) + return 0; + + x = 0; + while (!eat (rdm, '_')) + { + c = next (rdm); + x *= 62; + if (ISDIGIT (c)) + x += c - '0'; + else if (ISLOWER (c)) + x += 10 + (c - 'a'); + else if (ISUPPER (c)) + x += 10 + 26 + (c - 'A'); + else + { + rdm->errored = 1; + return 0; + } + } + return x + 1; +} + +static uint64_t +parse_opt_integer_62 (struct rust_demangler *rdm, char tag) +{ + if (!eat (rdm, tag)) + return 0; + return 1 + parse_integer_62 (rdm); +} + +static uint64_t +parse_disambiguator (struct rust_demangler *rdm) +{ + return parse_opt_integer_62 (rdm, 's'); +} + +static size_t +parse_hex_nibbles (struct rust_demangler *rdm, uint64_t *value) +{ + char c; + size_t hex_len; + + hex_len = 0; + *value = 0; + + while (!eat (rdm, '_')) + { + *value <<= 4; + + c = next (rdm); + if (ISDIGIT (c)) + *value |= c - '0'; + else if (c >= 'a' && c <= 'f') + *value |= 10 + (c - 'a'); + else + { + rdm->errored = 1; + return 0; + } + hex_len++; + } + + return hex_len; +} + struct rust_mangled_ident { /* ASCII part of the identifier. */ const char *ascii; size_t ascii_len; + + /* Punycode insertion codes for Unicode codepoints, if any. */ + const char *punycode; + size_t punycode_len; }; static struct rust_mangled_ident @@ -104,10 +198,16 @@ { char c; size_t start, len; + int is_punycode = 0; struct rust_mangled_ident ident; ident.ascii = NULL; ident.ascii_len = 0; + ident.punycode = NULL; + ident.punycode_len = 0; + + if (rdm->version != -1) + is_punycode = eat (rdm, 'u'); c = next (rdm); if (!ISDIGIT (c)) @@ -121,6 +221,10 @@ while (ISDIGIT (peek (rdm))) len = len * 10 + (next (rdm) - '0'); + /* Skip past the optional `_` separator (v0). */ + if (rdm->version != -1) + eat (rdm, '_'); + start = rdm->next; rdm->next += len; /* Check for overflows. */ @@ -133,6 +237,27 @@ ident.ascii = rdm->sym + start; ident.ascii_len = len; + if (is_punycode) + { + ident.punycode_len = 0; + while (ident.ascii_len > 0) + { + ident.ascii_len--; + + /* The last '_' is a separator between ascii & punycode. */ + if (ident.ascii[ident.ascii_len] == '_') + break; + + ident.punycode_len++; + } + if (!ident.punycode_len) + { + rdm->errored = 1; + return ident; + } + ident.punycode = ident.ascii + (len - ident.punycode_len); + } + if (ident.ascii_len == 0) ident.ascii = NULL; @@ -144,12 +269,28 @@ static void print_str (struct rust_demangler *rdm, const char *data, size_t len) { - if (!rdm->errored) + if (!rdm->errored && !rdm->skipping_printing) rdm->callback (data, len, rdm->callback_opaque); } #define PRINT(s) print_str (rdm, s, strlen (s)) +static void +print_uint64 (struct rust_demangler *rdm, uint64_t x) +{ + char s[21]; + snprintf (s, 21, "%" PRIu64, x); + PRINT (s); +} + +static void +print_uint64_hex (struct rust_demangler *rdm, uint64_t x) +{ + char s[17]; + snprintf (s, 17, "%" PRIx64, x); + PRINT (s); +} + /* Return a 0x0-0xf value if the char is 0-9a-f, and -1 otherwise. */ static int decode_lower_hex_nibble (char nibble) @@ -230,9 +371,14 @@ print_ident (struct rust_demangler *rdm, struct rust_mangled_ident ident) { char unescaped; - size_t len; + uint8_t *out, *p, d; + size_t len, cap, punycode_pos, j; + /* Punycode parameters and state. */ + uint32_t c; + size_t base, t_min, t_max, skew, damp, bias, i; + size_t delta, w, k, t; - if (rdm->errored) + if (rdm->errored || rdm->skipping_printing) return; if (rdm->version == -1) @@ -273,8 +419,7 @@ } else { - /* "." becomes "-" */ - PRINT ("-"); + PRINT ("."); len = 1; } } @@ -294,6 +439,830 @@ return; } + + if (!ident.punycode) + { + print_str (rdm, ident.ascii, ident.ascii_len); + return; + } + + len = 0; + cap = 4; + while (cap < ident.ascii_len) + { + cap *= 2; + /* Check for overflows. */ + if ((cap * 4) / 4 != cap) + { + rdm->errored = 1; + return; + } + } + + /* Store the output codepoints as groups of 4 UTF-8 bytes. */ + out = (uint8_t *)malloc (cap * 4); + if (!out) + { + rdm->errored = 1; + return; + } + + /* Populate initial output from ASCII fragment. */ + for (len = 0; len < ident.ascii_len; len++) + { + p = out + 4 * len; + p[0] = 0; + p[1] = 0; + p[2] = 0; + p[3] = ident.ascii[len]; + } + + /* Punycode parameters and initial state. */ + base = 36; + t_min = 1; + t_max = 26; + skew = 38; + damp = 700; + bias = 72; + i = 0; + c = 0x80; + + punycode_pos = 0; + while (punycode_pos < ident.punycode_len) + { + /* Read one delta value. */ + delta = 0; + w = 1; + k = 0; + do + { + k += base; + t = k < bias ? 0 : (k - bias); + if (t < t_min) + t = t_min; + if (t > t_max) + t = t_max; + + if (punycode_pos >= ident.punycode_len) + goto cleanup; + d = ident.punycode[punycode_pos++]; + + if (ISLOWER (d)) + d = d - 'a'; + else if (ISDIGIT (d)) + d = 26 + (d - '0'); + else + { + rdm->errored = 1; + goto cleanup; + } + + delta += d * w; + w *= base - t; + } + while (d >= t); + + /* Compute the new insert position and character. */ + len++; + i += delta; + c += i / len; + i %= len; + + /* Ensure enough space is available. */ + if (cap < len) + { + cap *= 2; + /* Check for overflows. */ + if ((cap * 4) / 4 != cap || cap < len) + { + rdm->errored = 1; + goto cleanup; + } + } + p = (uint8_t *)realloc (out, cap * 4); + if (!p) + { + rdm->errored = 1; + goto cleanup; + } + out = p; + + /* Move the characters after the insert position. */ + p = out + i * 4; + memmove (p + 4, p, (len - i - 1) * 4); + + /* Insert the new character, as UTF-8 bytes. */ + p[0] = c >= 0x10000 ? 0xf0 | (c >> 18) : 0; + p[1] = c >= 0x800 ? (c < 0x10000 ? 0xe0 : 0x80) | ((c >> 12) & 0x3f) : 0; + p[2] = (c < 0x800 ? 0xc0 : 0x80) | ((c >> 6) & 0x3f); + p[3] = 0x80 | (c & 0x3f); + + /* If there are no more deltas, decoding is complete. */ + if (punycode_pos == ident.punycode_len) + break; + + i++; + + /* Perform bias adaptation. */ + delta /= damp; + damp = 2; + + delta += delta / len; + k = 0; + while (delta > ((base - t_min) * t_max) / 2) + { + delta /= base - t_min; + k += base; + } + bias = k + ((base - t_min + 1) * delta) / (delta + skew); + } + + /* Remove all the 0 bytes to leave behind an UTF-8 string. */ + for (i = 0, j = 0; i < len * 4; i++) + if (out[i] != 0) + out[j++] = out[i]; + + print_str (rdm, (const char *)out, j); + +cleanup: + free (out); +} + +/* Print the lifetime according to the previously decoded index. + An index of `0` always refers to `'_`, but starting with `1`, + indices refer to late-bound lifetimes introduced by a binder. */ +static void +print_lifetime_from_index (struct rust_demangler *rdm, uint64_t lt) +{ + char c; + uint64_t depth; + + PRINT ("'"); + if (lt == 0) + { + PRINT ("_"); + return; + } + + depth = rdm->bound_lifetime_depth - lt; + /* Try to print lifetimes alphabetically first. */ + if (depth < 26) + { + c = 'a' + depth; + print_str (rdm, &c, 1); + } + else + { + /* Use `'_123` after running out of letters. */ + PRINT ("_"); + print_uint64 (rdm, depth); + } +} + +/* Demangling functions. */ + +static void demangle_binder (struct rust_demangler *rdm); +static void demangle_path (struct rust_demangler *rdm, int in_value); +static void demangle_generic_arg (struct rust_demangler *rdm); +static void demangle_type (struct rust_demangler *rdm); +static int demangle_path_maybe_open_generics (struct rust_demangler *rdm); +static void demangle_dyn_trait (struct rust_demangler *rdm); +static void demangle_const (struct rust_demangler *rdm); +static void demangle_const_uint (struct rust_demangler *rdm); +static void demangle_const_int (struct rust_demangler *rdm); +static void demangle_const_bool (struct rust_demangler *rdm); +static void demangle_const_char (struct rust_demangler *rdm); + +/* Optionally enter a binder ('G') for late-bound lifetimes, + printing e.g. `for<'a, 'b> `, and make those lifetimes visible + to the caller (via depth level, which the caller should reset). */ +static void +demangle_binder (struct rust_demangler *rdm) +{ + uint64_t i, bound_lifetimes; + + if (rdm->errored) + return; + + bound_lifetimes = parse_opt_integer_62 (rdm, 'G'); + if (bound_lifetimes > 0) + { + PRINT ("for<"); + for (i = 0; i < bound_lifetimes; i++) + { + if (i > 0) + PRINT (", "); + rdm->bound_lifetime_depth++; + print_lifetime_from_index (rdm, 1); + } + PRINT ("> "); + } +} + +static void +demangle_path (struct rust_demangler *rdm, int in_value) +{ + char tag, ns; + int was_skipping_printing; + size_t i, backref, old_next; + uint64_t dis; + struct rust_mangled_ident name; + + if (rdm->errored) + return; + + switch (tag = next (rdm)) + { + case 'C': + dis = parse_disambiguator (rdm); + name = parse_ident (rdm); + + print_ident (rdm, name); + if (rdm->verbose) + { + PRINT ("["); + print_uint64_hex (rdm, dis); + PRINT ("]"); + } + break; + case 'N': + ns = next (rdm); + if (!ISLOWER (ns) && !ISUPPER (ns)) + { + rdm->errored = 1; + return; + } + + demangle_path (rdm, in_value); + + dis = parse_disambiguator (rdm); + name = parse_ident (rdm); + + if (ISUPPER (ns)) + { + /* Special namespaces, like closures and shims. */ + PRINT ("::{"); + switch (ns) + { + case 'C': + PRINT ("closure"); + break; + case 'S': + PRINT ("shim"); + break; + default: + print_str (rdm, &ns, 1); + } + if (name.ascii || name.punycode) + { + PRINT (":"); + print_ident (rdm, name); + } + PRINT ("#"); + print_uint64 (rdm, dis); + PRINT ("}"); + } + else + { + /* Implementation-specific/unspecified namespaces. */ + + if (name.ascii || name.punycode) + { + PRINT ("::"); + print_ident (rdm, name); + } + } + break; + case 'M': + case 'X': + /* Ignore the `impl`'s own path.*/ + parse_disambiguator (rdm); + was_skipping_printing = rdm->skipping_printing; + rdm->skipping_printing = 1; + demangle_path (rdm, in_value); + rdm->skipping_printing = was_skipping_printing; + /* fallthrough */ + case 'Y': + PRINT ("<"); + demangle_type (rdm); + if (tag != 'M') + { + PRINT (" as "); + demangle_path (rdm, 0); + } + PRINT (">"); + break; + case 'I': + demangle_path (rdm, in_value); + if (in_value) + PRINT ("::"); + PRINT ("<"); + for (i = 0; !rdm->errored && !eat (rdm, 'E'); i++) + { + if (i > 0) + PRINT (", "); + demangle_generic_arg (rdm); + } + PRINT (">"); + break; + case 'B': + backref = parse_integer_62 (rdm); + if (!rdm->skipping_printing) + { + old_next = rdm->next; + rdm->next = backref; + demangle_path (rdm, in_value); + rdm->next = old_next; + } + break; + default: + rdm->errored = 1; + return; + } +} + +static void +demangle_generic_arg (struct rust_demangler *rdm) +{ + uint64_t lt; + if (eat (rdm, 'L')) + { + lt = parse_integer_62 (rdm); + print_lifetime_from_index (rdm, lt); + } + else if (eat (rdm, 'K')) + demangle_const (rdm); + else + demangle_type (rdm); +} + +static const char * +basic_type (char tag) +{ + switch (tag) + { + case 'b': + return "bool"; + case 'c': + return "char"; + case 'e': + return "str"; + case 'u': + return "()"; + case 'a': + return "i8"; + case 's': + return "i16"; + case 'l': + return "i32"; + case 'x': + return "i64"; + case 'n': + return "i128"; + case 'i': + return "isize"; + case 'h': + return "u8"; + case 't': + return "u16"; + case 'm': + return "u32"; + case 'y': + return "u64"; + case 'o': + return "u128"; + case 'j': + return "usize"; + case 'f': + return "f32"; + case 'd': + return "f64"; + case 'z': + return "!"; + case 'p': + return "_"; + case 'v': + return "..."; + + default: + return NULL; + } +} + +static void +demangle_type (struct rust_demangler *rdm) +{ + char tag; + size_t i, old_next, backref; + uint64_t lt, old_bound_lifetime_depth; + const char *basic; + struct rust_mangled_ident abi; + + if (rdm->errored) + return; + + tag = next (rdm); + + basic = basic_type (tag); + if (basic) + { + PRINT (basic); + return; + } + + switch (tag) + { + case 'R': + case 'Q': + PRINT ("&"); + if (eat (rdm, 'L')) + { + lt = parse_integer_62 (rdm); + if (lt) + { + print_lifetime_from_index (rdm, lt); + PRINT (" "); + } + } + if (tag != 'R') + PRINT ("mut "); + demangle_type (rdm); + break; + case 'P': + case 'O': + PRINT ("*"); + if (tag != 'P') + PRINT ("mut "); + else + PRINT ("const "); + demangle_type (rdm); + break; + case 'A': + case 'S': + PRINT ("["); + demangle_type (rdm); + if (tag == 'A') + { + PRINT ("; "); + demangle_const (rdm); + } + PRINT ("]"); + break; + case 'T': + PRINT ("("); + for (i = 0; !rdm->errored && !eat (rdm, 'E'); i++) + { + if (i > 0) + PRINT (", "); + demangle_type (rdm); + } + if (i == 1) + PRINT (","); + PRINT (")"); + break; + case 'F': + old_bound_lifetime_depth = rdm->bound_lifetime_depth; + demangle_binder (rdm); + + if (eat (rdm, 'U')) + PRINT ("unsafe "); + + if (eat (rdm, 'K')) + { + if (eat (rdm, 'C')) + { + abi.ascii = "C"; + abi.ascii_len = 1; + } + else + { + abi = parse_ident (rdm); + if (!abi.ascii || abi.punycode) + { + rdm->errored = 1; + goto restore; + } + } + + PRINT ("extern \""); + + /* If the ABI had any `-`, they were replaced with `_`, + so the parts between `_` have to be re-joined with `-`. */ + for (i = 0; i < abi.ascii_len; i++) + { + if (abi.ascii[i] == '_') + { + print_str (rdm, abi.ascii, i); + PRINT ("-"); + abi.ascii += i + 1; + abi.ascii_len -= i + 1; + i = 0; + } + } + print_str (rdm, abi.ascii, abi.ascii_len); + + PRINT ("\" "); + } + + PRINT ("fn("); + for (i = 0; !rdm->errored && !eat (rdm, 'E'); i++) + { + if (i > 0) + PRINT (", "); + demangle_type (rdm); + } + PRINT (")"); + + if (eat (rdm, 'u')) + { + /* Skip printing the return type if it's 'u', i.e. `()`. */ + } + else + { + PRINT (" -> "); + demangle_type (rdm); + } + + /* Restore `bound_lifetime_depth` to outside the binder. */ + restore: + rdm->bound_lifetime_depth = old_bound_lifetime_depth; + break; + case 'D': + PRINT ("dyn "); + + old_bound_lifetime_depth = rdm->bound_lifetime_depth; + demangle_binder (rdm); + + for (i = 0; !rdm->errored && !eat (rdm, 'E'); i++) + { + if (i > 0) + PRINT (" + "); + demangle_dyn_trait (rdm); + } + + /* Restore `bound_lifetime_depth` to outside the binder. */ + rdm->bound_lifetime_depth = old_bound_lifetime_depth; + + if (!eat (rdm, 'L')) + { + rdm->errored = 1; + return; + } + lt = parse_integer_62 (rdm); + if (lt) + { + PRINT (" + "); + print_lifetime_from_index (rdm, lt); + } + break; + case 'B': + backref = parse_integer_62 (rdm); + if (!rdm->skipping_printing) + { + old_next = rdm->next; + rdm->next = backref; + demangle_type (rdm); + rdm->next = old_next; + } + break; + default: + /* Go back to the tag, so `demangle_path` also sees it. */ + rdm->next--; + demangle_path (rdm, 0); + } +} + +/* A trait in a trait object may have some "existential projections" + (i.e. associated type bindings) after it, which should be printed + in the `<...>` of the trait, e.g. `dyn Trait`. + To this end, this method will keep the `<...>` of an 'I' path + open, by omitting the `>`, and return `Ok(true)` in that case. */ +static int +demangle_path_maybe_open_generics (struct rust_demangler *rdm) +{ + int open; + size_t i, old_next, backref; + + open = 0; + + if (rdm->errored) + return open; + + if (eat (rdm, 'B')) + { + backref = parse_integer_62 (rdm); + if (!rdm->skipping_printing) + { + old_next = rdm->next; + rdm->next = backref; + open = demangle_path_maybe_open_generics (rdm); + rdm->next = old_next; + } + } + else if (eat (rdm, 'I')) + { + demangle_path (rdm, 0); + PRINT ("<"); + open = 1; + for (i = 0; !rdm->errored && !eat (rdm, 'E'); i++) + { + if (i > 0) + PRINT (", "); + demangle_generic_arg (rdm); + } + } + else + demangle_path (rdm, 0); + return open; +} + +static void +demangle_dyn_trait (struct rust_demangler *rdm) +{ + int open; + struct rust_mangled_ident name; + + if (rdm->errored) + return; + + open = demangle_path_maybe_open_generics (rdm); + + while (eat (rdm, 'p')) + { + if (!open) + PRINT ("<"); + else + PRINT (", "); + open = 1; + + name = parse_ident (rdm); + print_ident (rdm, name); + PRINT (" = "); + demangle_type (rdm); + } + + if (open) + PRINT (">"); +} + +static void +demangle_const (struct rust_demangler *rdm) +{ + char ty_tag; + size_t old_next, backref; + + if (rdm->errored) + return; + + if (eat (rdm, 'B')) + { + backref = parse_integer_62 (rdm); + if (!rdm->skipping_printing) + { + old_next = rdm->next; + rdm->next = backref; + demangle_const (rdm); + rdm->next = old_next; + } + return; + } + + ty_tag = next (rdm); + switch (ty_tag) + { + /* Placeholder. */ + case 'p': + PRINT ("_"); + return; + + /* Unsigned integer types. */ + case 'h': + case 't': + case 'm': + case 'y': + case 'o': + case 'j': + demangle_const_uint (rdm); + break; + + /* Signed integer types. */ + case 'a': + case 's': + case 'l': + case 'x': + case 'n': + case 'i': + demangle_const_int (rdm); + break; + + /* Boolean. */ + case 'b': + demangle_const_bool (rdm); + break; + + /* Character. */ + case 'c': + demangle_const_char (rdm); + break; + + default: + rdm->errored = 1; + return; + } + + if (rdm->errored) + return; + + if (rdm->verbose) + { + PRINT (": "); + PRINT (basic_type (ty_tag)); + } +} + +static void +demangle_const_uint (struct rust_demangler *rdm) +{ + size_t hex_len; + uint64_t value; + + if (rdm->errored) + return; + + hex_len = parse_hex_nibbles (rdm, &value); + + if (hex_len > 16) + { + /* Print anything that doesn't fit in `uint64_t` verbatim. */ + PRINT ("0x"); + print_str (rdm, rdm->sym + (rdm->next - hex_len), hex_len); + } + else if (hex_len > 0) + print_uint64 (rdm, value); + else + rdm->errored = 1; +} + +static void +demangle_const_int (struct rust_demangler *rdm) +{ + if (eat (rdm, 'n')) + PRINT ("-"); + demangle_const_uint (rdm); +} + +static void +demangle_const_bool (struct rust_demangler *rdm) +{ + uint64_t value; + + if (parse_hex_nibbles (rdm, &value) != 1) + { + rdm->errored = 1; + return; + } + + if (value == 0) + PRINT ("false"); + else if (value == 1) + PRINT ("true"); + else + rdm->errored = 1; +} + +static void +demangle_const_char (struct rust_demangler *rdm) +{ + size_t hex_len; + uint64_t value; + + hex_len = parse_hex_nibbles (rdm, &value); + + if (hex_len == 0 || hex_len > 8) + { + rdm->errored = 1; + return; + } + + /* Match Rust's character "debug" output as best as we can. */ + PRINT ("'"); + if (value == '\t') + PRINT ("\\t"); + else if (value == '\r') + PRINT ("\\r"); + else if (value == '\n') + PRINT ("\\n"); + else if (value > ' ' && value < '~') + /* Rust also considers many non-ASCII codepoints to be printable, but + that logic is not easily ported to C. */ + print_str (rdm, (char *) &value, 1); + else + { + PRINT ("\\u{"); + print_uint64_hex (rdm, value); + PRINT ("}"); + } + PRINT ("'"); } /* A legacy hash is the prefix "h" followed by 16 lowercase hex digits. @@ -345,11 +1314,15 @@ rdm.next = 0; rdm.errored = 0; + rdm.skipping_printing = 0; rdm.verbose = (options & DMGL_VERBOSE) != 0; rdm.version = 0; + rdm.bound_lifetime_depth = 0; - /* Rust symbols always start with _ZN (legacy). */ - if (rdm.sym[0] == '_' && rdm.sym[1] == 'Z' && rdm.sym[2] == 'N') + /* Rust symbols always start with _R (v0) or _ZN (legacy). */ + if (rdm.sym[0] == '_' && rdm.sym[1] == 'R') + rdm.sym += 2; + else if (rdm.sym[0] == '_' && rdm.sym[1] == 'Z' && rdm.sym[2] == 'N') { rdm.sym += 3; rdm.version = -1; @@ -357,7 +1330,11 @@ else return 0; - /* Legacy Rust symbols use only [_0-9a-zA-Z.:$] characters. */ + /* Paths (v0) always start with uppercase characters. */ + if (rdm.version != -1 && !ISUPPER (rdm.sym[0])) + return 0; + + /* Rust symbols (v0) use only [_0-9a-zA-Z] characters. */ for (p = rdm.sym; *p; p++) { rdm.sym_len++; @@ -365,6 +1342,7 @@ if (*p == '_' || ISALNUM (*p)) continue; + /* Legacy Rust symbols can also contain [.:$] characters. */ if (rdm.version == -1 && (*p == '$' || *p == '.' || *p == ':')) continue; @@ -418,7 +1396,19 @@ while (rdm.next < rdm.sym_len); } else - return 0; + { + demangle_path (&rdm, 1); + + /* Skip instantiating crate. */ + if (!rdm.errored && rdm.next < rdm.sym_len) + { + rdm.skipping_printing = 1; + demangle_path (&rdm, 0); + } + + /* It's an error to not reach the end. */ + rdm.errored |= rdm.next != rdm.sym_len; + } return !rdm.errored; } diff -Nru libiberty-20201110/libiberty/safe-ctype.c libiberty-20210106/libiberty/safe-ctype.c --- libiberty-20201110/libiberty/safe-ctype.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/safe-ctype.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* replacement macros. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Zack Weinberg . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/setenv.c libiberty-20210106/libiberty/setenv.c --- libiberty-20201110/libiberty/setenv.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/setenv.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2020 Free Software Foundation, Inc. +/* Copyright (C) 1992-2021 Free Software Foundation, Inc. This file based on setenv.c in the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/setproctitle.c libiberty-20210106/libiberty/setproctitle.c --- libiberty-20201110/libiberty/setproctitle.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/setproctitle.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Set the title of a process. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/sha1.c libiberty-20210106/libiberty/sha1.c --- libiberty-20201110/libiberty/sha1.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/sha1.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,7 +1,7 @@ /* sha1.c - Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the diff -Nru libiberty-20201110/libiberty/simple-object.c libiberty-20210106/libiberty/simple-object.c --- libiberty-20201110/libiberty/simple-object.c 2020-05-12 14:12:37.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object.c -- simple routines to read and write object files. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/simple-object-coff.c libiberty-20210106/libiberty/simple-object-coff.c --- libiberty-20201110/libiberty/simple-object-coff.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object-coff.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object-coff.c -- routines to manipulate COFF object files. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/simple-object-common.h libiberty-20210106/libiberty/simple-object-common.h --- libiberty-20201110/libiberty/simple-object-common.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object-common.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object-common.h -- common structs for object file manipulation. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/simple-object-elf.c libiberty-20210106/libiberty/simple-object-elf.c --- libiberty-20201110/libiberty/simple-object-elf.c 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object-elf.c 2021-01-06 10:26:58.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object-elf.c -- routines to manipulate ELF object files. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it @@ -1191,7 +1191,7 @@ unsigned int sh_link; sh_link = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, shdr, sh_link, Elf_Word); - symtab_indices_shndx[sh_link - 1] = i; + symtab_indices_shndx[sh_link - 1] = i - 1; /* Always discard the extended index sections, after copying it will not be needed. This way we don't need to update it and deal with the ordering constraints of @@ -1372,19 +1372,22 @@ { unsigned entsize = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, shdr, sh_entsize, Elf_Addr); - unsigned strtab = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, - shdr, sh_link, Elf_Word); size_t prevailing_name_idx = 0; unsigned char *ent; unsigned *shndx_table = NULL; /* Read the section index table if present. */ if (symtab_indices_shndx[i - 1] != 0) { - unsigned char *sidxhdr = shdrs + (strtab - 1) * shdr_size; + unsigned char *sidxhdr = shdrs + symtab_indices_shndx[i - 1] * shdr_size; off_t sidxoff = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, sidxhdr, sh_offset, Elf_Addr); size_t sidxsz = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, sidxhdr, sh_size, Elf_Addr); + unsigned int shndx_type + = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, + sidxhdr, sh_type, Elf_Word); + if (shndx_type != SHT_SYMTAB_SHNDX) + return "Wrong section type of a SYMTAB SECTION INDICES section"; shndx_table = (unsigned *)XNEWVEC (char, sidxsz); simple_object_internal_read (sobj->descriptor, sobj->offset + sidxoff, diff -Nru libiberty-20201110/libiberty/simple-object-mach-o.c libiberty-20210106/libiberty/simple-object-mach-o.c --- libiberty-20201110/libiberty/simple-object-mach-o.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object-mach-o.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object-mach-o.c -- routines to manipulate Mach-O object files. - Copyright (C) 2010-2020 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/simple-object-xcoff.c libiberty-20210106/libiberty/simple-object-xcoff.c --- libiberty-20201110/libiberty/simple-object-xcoff.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/simple-object-xcoff.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* simple-object-coff.c -- routines to manipulate XCOFF object files. - Copyright (C) 2013-2020 Free Software Foundation, Inc. + Copyright (C) 2013-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google and David Edelsohn, IBM. This program is free software; you can redistribute it and/or modify it diff -Nru libiberty-20201110/libiberty/snprintf.c libiberty-20210106/libiberty/snprintf.c --- libiberty-20201110/libiberty/snprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/snprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the snprintf function. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. This library is free diff -Nru libiberty-20201110/libiberty/sort.c libiberty-20210106/libiberty/sort.c --- libiberty-20201110/libiberty/sort.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/sort.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Sorting algorithms. - Copyright (C) 2000-2020 Free Software Foundation, Inc. + Copyright (C) 2000-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell . This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/spaces.c libiberty-20210106/libiberty/spaces.c --- libiberty-20201110/libiberty/spaces.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/spaces.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Allocate memory region filled with spaces. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/splay-tree.c libiberty-20210106/libiberty/splay-tree.c --- libiberty-20201110/libiberty/splay-tree.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/splay-tree.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* A splay-tree datatype. - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Mark Mitchell (mark@markmitchell.com). This file is part of GNU CC. diff -Nru libiberty-20201110/libiberty/stack-limit.c libiberty-20210106/libiberty/stack-limit.c --- libiberty-20201110/libiberty/stack-limit.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/stack-limit.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Increase stack size limit if possible. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the diff -Nru libiberty-20201110/libiberty/stpcpy.c libiberty-20210106/libiberty/stpcpy.c --- libiberty-20201110/libiberty/stpcpy.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/stpcpy.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the stpcpy function. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/stpncpy.c libiberty-20210106/libiberty/stpncpy.c --- libiberty-20201110/libiberty/stpncpy.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/stpncpy.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the stpncpy function. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/strndup.c libiberty-20210106/libiberty/strndup.c --- libiberty-20201110/libiberty/strndup.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/strndup.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the strndup function. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/strstr.c libiberty-20210106/libiberty/strstr.c --- libiberty-20201110/libiberty/strstr.c 2016-02-26 15:58:08.000000000 +0000 +++ libiberty-20210106/libiberty/strstr.c 2021-01-06 10:26:58.000000000 +0000 @@ -16,26 +16,20 @@ */ - -/* FIXME: The above description is ANSI compiliant. This routine has not - been validated to comply with it. -fnf */ - #include -extern char *strchr (const char *, int); -extern int strncmp (const void *, const void *, size_t); +extern int memcmp (const void *, const void *, size_t); extern size_t strlen (const char *); char * strstr (const char *s1, const char *s2) { - const char *p = s1; const size_t len = strlen (s2); - - for (; (p = strchr (p, *s2)) != 0; p++) + while (*s1) { - if (strncmp (p, s2, len) == 0) - return (char *)p; + if (!memcmp (s1, s2, len)) + return (char *)s1; + ++s1; } return (0); } diff -Nru libiberty-20201110/libiberty/strtod.c libiberty-20210106/libiberty/strtod.c --- libiberty-20201110/libiberty/strtod.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/strtod.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implementation of strtod for systems with atof. - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the diff -Nru libiberty-20201110/libiberty/strverscmp.c libiberty-20210106/libiberty/strverscmp.c --- libiberty-20201110/libiberty/strverscmp.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/strverscmp.c 2021-01-06 10:26:58.000000000 +0000 @@ -1,7 +1,7 @@ /* Compare strings while treating digits characters numerically. - Copyright (C) 1997-2020 Free Software Foundation, Inc. + Copyright (C) 1997-2021 Free Software Foundation, Inc. This file is part of the libiberty library. - Contributed by Jean-Franηois Bignolles , 1997. + Contributed by Jean-FranΓ§ois Bignolles , 1997. Libiberty is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff -Nru libiberty-20201110/libiberty/testsuite/demangle-expected libiberty-20210106/libiberty/testsuite/demangle-expected --- libiberty-20201110/libiberty/testsuite/demangle-expected 2020-10-23 11:46:08.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/demangle-expected 2021-01-06 10:26:58.000000000 +0000 @@ -1469,3 +1469,22 @@ # PR 96143 _Z2F2IZ1FvEUlvE_EN1AIT_E1XES2_ A::X F2(F()::{lambda()#1}) + +# PR 88115 +_Z1fIiEvDTv111__alignof__T_E +void f(decltype (__alignof__(int))) + +_Z1fIiEvDTv111__alignof__tlT_EE +void f(decltype (__alignof__(int{}))) + +_Z1gI1AEv1SIXadsrT_oncviEE +void g(S<&A::operator int>) + +_Z1jI1AEDTcldtfp_oncvPT_EES1_ +decltype (({parm#1}.(operator A*))()) j(A) + +_Z1fI1AEDtdtfp_srT_1xES1_ +decltype ({parm#1}.A::x) f(A) + +_Z2f6IP1AEDtptfp_gssr1A1BE1xET_ +decltype ({parm#1}->(::A::B::x)) f6(A*) diff -Nru libiberty-20201110/libiberty/testsuite/demangler-fuzzer.c libiberty-20210106/libiberty/testsuite/demangler-fuzzer.c --- libiberty-20201110/libiberty/testsuite/demangler-fuzzer.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/demangler-fuzzer.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Demangler fuzzer. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GNU libiberty. diff -Nru libiberty-20201110/libiberty/testsuite/Makefile.in libiberty-20210106/libiberty/testsuite/Makefile.in --- libiberty-20201110/libiberty/testsuite/Makefile.in 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/Makefile.in 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ # # Makefile -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is part of the libiberty library. # Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/testsuite/rust-demangle-expected libiberty-20210106/libiberty/testsuite/rust-demangle-expected --- libiberty-20201110/libiberty/testsuite/rust-demangle-expected 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/rust-demangle-expected 2021-01-06 10:26:58.000000000 +0000 @@ -11,7 +11,7 @@ # ############ # -# Coverage Tests +# Coverage Tests (legacy) # # # Demangles as rust symbol. @@ -163,3 +163,135 @@ --format=rust _ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h059a991a004536adE issue_60925::foo::Foo::foo +--format=rust +_ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17h000b1ad6c4f30bd6E +core::ops::function::FnOnce::call_once{{vtable.shim}} +# +############ +# +# Coverage Tests (v0) +# +# +# Crate with a leading digit. +--format=rust +_RNvC6_123foo3bar +123foo::bar +# UTF-8 identifiers. +--format=rust +_RNqCs4fqI2P2rA04_11utf8_identsu30____7hkackfecea1cbdathfdh9hlq6y +utf8_idents::αƒ‘αƒαƒ­αƒ›αƒ”αƒšαƒαƒ“_αƒ’αƒ”αƒ›αƒ αƒ˜αƒ”αƒšαƒ˜_αƒ‘αƒαƒ“αƒ˜αƒšαƒ˜ +# Closure path elements. +--format=rust +_RNCNCNgCs6DXkGYLi8lr_2cc5spawn00B5_ +cc::spawn::{closure#0}::{closure#0} +# +--format=rust +_RNCINkXs25_NgCsbmNqQUJIY6D_4core5sliceINyB9_4IterhENuNgNoBb_4iter8iterator8Iterator9rpositionNCNgNpB9_6memchr7memrchrs_0E0Bb_ + as core::iter::iterator::Iterator>::rposition::::{closure#0} +# dyn Trait ("trait object") types. +--format=rust +_RINbNbCskIICzLVDPPb_5alloc5alloc8box_freeDINbNiB4_5boxed5FnBoxuEp6OutputuEL_ECs1iopQbuBiw2_3std +alloc::alloc::box_free::> +# Types with const generics parameters. +--format=rust +_RNvMC0INtC8arrayvec8ArrayVechKj7b_E3new +>::new +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_8UnsignedKhb_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_6SignedKs98_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_6SignedKanb_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_4BoolKb0_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_4BoolKb1_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc76_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKca_E +> +# +--format=rust +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc2202_E +> +# +--format=rust +_RNvNvMCs4fqI2P2rA04_13const_genericINtB4_3FooKpE3foo3FOO +>::foo::FOO +# +# All of the tests above but in auto mode instead: +# +# Crate with a leading digit. +--format=auto +_RNvC6_123foo3bar +123foo::bar +# UTF-8 identifiers. +--format=auto +_RNqCs4fqI2P2rA04_11utf8_identsu30____7hkackfecea1cbdathfdh9hlq6y +utf8_idents::αƒ‘αƒαƒ­αƒ›αƒ”αƒšαƒαƒ“_αƒ’αƒ”αƒ›αƒ αƒ˜αƒ”αƒšαƒ˜_αƒ‘αƒαƒ“αƒ˜αƒšαƒ˜ +# Closure path elements. +--format=auto +_RNCNCNgCs6DXkGYLi8lr_2cc5spawn00B5_ +cc::spawn::{closure#0}::{closure#0} +# +--format=auto +_RNCINkXs25_NgCsbmNqQUJIY6D_4core5sliceINyB9_4IterhENuNgNoBb_4iter8iterator8Iterator9rpositionNCNgNpB9_6memchr7memrchrs_0E0Bb_ + as core::iter::iterator::Iterator>::rposition::::{closure#0} +# dyn Trait ("trait object") types. +--format=auto +_RINbNbCskIICzLVDPPb_5alloc5alloc8box_freeDINbNiB4_5boxed5FnBoxuEp6OutputuEL_ECs1iopQbuBiw2_3std +alloc::alloc::box_free::> +# Types with const generics parameters. +--format=auto +_RNvMC0INtC8arrayvec8ArrayVechKj7b_E3new +>::new +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_8UnsignedKhb_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_6SignedKs98_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_6SignedKanb_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_4BoolKb0_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_4BoolKb1_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc76_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKca_E +> +# +--format=auto +_RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc2202_E +> +# +--format=auto +_RNvNvMCs4fqI2P2rA04_13const_genericINtB4_3FooKpE3foo3FOO +>::foo::FOO diff -Nru libiberty-20201110/libiberty/testsuite/test-demangle.c libiberty-20210106/libiberty/testsuite/test-demangle.c --- libiberty-20201110/libiberty/testsuite/test-demangle.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/test-demangle.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Demangler test program, - Copyright (C) 2002-2020 Free Software Foundation, Inc. + Copyright (C) 2002-2021 Free Software Foundation, Inc. Written by Zack Weinberg This file is part of the libiberty library, which is part of GCC. diff -Nru libiberty-20201110/libiberty/testsuite/test-pexecute.c libiberty-20210106/libiberty/testsuite/test-pexecute.c --- libiberty-20201110/libiberty/testsuite/test-pexecute.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/test-pexecute.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Pexecute test program, - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of GNU libiberty. diff -Nru libiberty-20201110/libiberty/testsuite/test-strtol.c libiberty-20210106/libiberty/testsuite/test-strtol.c --- libiberty-20201110/libiberty/testsuite/test-strtol.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/testsuite/test-strtol.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program for strtol family of funtions, - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Written by Yury Gribov This file is part of the libiberty library, which is part of GCC. diff -Nru libiberty-20201110/libiberty/timeval-utils.c libiberty-20210106/libiberty/timeval-utils.c --- libiberty-20201110/libiberty/timeval-utils.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/timeval-utils.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Basic struct timeval utilities. - Copyright (C) 2011-2020 Free Software Foundation, Inc. + Copyright (C) 2011-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/unlink-if-ordinary.c libiberty-20210106/libiberty/unlink-if-ordinary.c --- libiberty-20201110/libiberty/unlink-if-ordinary.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/unlink-if-ordinary.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* unlink-if-ordinary.c - remove link to a file unless it is special - Copyright (C) 2004-2020 Free Software Foundation, Inc. + Copyright (C) 2004-2021 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the diff -Nru libiberty-20201110/libiberty/vasprintf.c libiberty-20210106/libiberty/vasprintf.c --- libiberty-20201110/libiberty/vasprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vasprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Like vsprintf but provides a pointer to malloc'd storage, which must be freed by the caller. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/vfprintf.c libiberty-20210106/libiberty/vfprintf.c --- libiberty-20201110/libiberty/vfprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vfprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Provide a version vfprintf in terms of _doprnt. By Kaveh Ghazi (ghazi@caip.rutgers.edu) 3/29/98 - Copyright (C) 1998-2020 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. */ #include "ansidecl.h" diff -Nru libiberty-20201110/libiberty/vprintf-support.c libiberty-20210106/libiberty/vprintf-support.c --- libiberty-20201110/libiberty/vprintf-support.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vprintf-support.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Estimate the length of the string generated by a vprintf-like function. Used by vasprintf and xvasprintf. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/vprintf-support.h libiberty-20210106/libiberty/vprintf-support.h --- libiberty-20201110/libiberty/vprintf-support.h 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vprintf-support.h 2021-01-04 12:43:12.000000000 +0000 @@ -1,6 +1,6 @@ /* Estimate the length of the string generated by a vprintf-like function. Use by vasprintf and xvasprintf. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/vsnprintf.c libiberty-20210106/libiberty/vsnprintf.c --- libiberty-20201110/libiberty/vsnprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vsnprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the vsnprintf function. - Copyright (C) 2003-2020 Free Software Foundation, Inc. + Copyright (C) 2003-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. This library is free diff -Nru libiberty-20201110/libiberty/vsprintf.c libiberty-20210106/libiberty/vsprintf.c --- libiberty-20201110/libiberty/vsprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/vsprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -3,7 +3,7 @@ implementations of stdio; newer ones should already have vsprintf. Written by Per Bothner of Cygnus Support. Based on libg++'s "form" (written by Doug Lea; dl@rocky.oswego.edu). - Copyright (C) 1991-2020 Free Software Foundation, Inc. + Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the diff -Nru libiberty-20201110/libiberty/xasprintf.c libiberty-20210106/libiberty/xasprintf.c --- libiberty-20201110/libiberty/xasprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/xasprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the xasprintf function. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Contributed by Manuel Lopez-Ibanez. This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/xexit.c libiberty-20210106/libiberty/xexit.c --- libiberty-20201110/libiberty/xexit.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/xexit.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* xexit.c -- Run any exit handlers, then exit. - Copyright (C) 1994-2020 Free Software Foundation, Inc. + Copyright (C) 1994-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/xmalloc.c libiberty-20210106/libiberty/xmalloc.c --- libiberty-20201110/libiberty/xmalloc.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/xmalloc.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* memory allocation routines with error checking. - Copyright (C) 1989-2020 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or diff -Nru libiberty-20201110/libiberty/xstrndup.c libiberty-20210106/libiberty/xstrndup.c --- libiberty-20201110/libiberty/xstrndup.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/xstrndup.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the xstrndup function. - Copyright (C) 2005-2020 Free Software Foundation, Inc. + Copyright (C) 2005-2021 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . This file is part of the libiberty library. diff -Nru libiberty-20201110/libiberty/xvasprintf.c libiberty-20210106/libiberty/xvasprintf.c --- libiberty-20201110/libiberty/xvasprintf.c 2020-01-18 15:07:02.000000000 +0000 +++ libiberty-20210106/libiberty/xvasprintf.c 2021-01-04 12:43:12.000000000 +0000 @@ -1,5 +1,5 @@ /* Implement the xvasprintf function. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. Contributed by Manuel Lopez-Ibanez. This file is part of the libiberty library.