1
0

initial import from Debian

version: 2.45-4 (UNRELEASED)
commit: bf4f75f17a4f370adc9bf9feca09710ce76ecc63
This commit is contained in:
2025-08-11 12:46:32 +03:00
commit 8c29d0a2c2
75 changed files with 19903 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
Author:
Description: Description: correct where ld scripts are installed
Author: Chris Chimelis <chris@debian.org>
Upstream status: N/A
Date: ??
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -50,7 +50,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS)
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
-scriptdir = $(tooldir)/lib
+scriptdir = $(libdir)
EMUL = @EMUL@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -583,7 +583,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CFLAGS)
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
-scriptdir = $(tooldir)/lib
+scriptdir = $(libdir)
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include

View File

@@ -0,0 +1,27 @@
Author: Chris Chimelis <chris@debian.org>
Description: Add more documentation about profiling and -fprofile-arcs.
--- a/gprof/gprof.texi
+++ b/gprof/gprof.texi
@@ -145,6 +145,10 @@ its symbol table and the call graph prof
If more than one profile file is specified, the @code{gprof}
output shows the sum of the profile information in the given profile files.
+If you use gcc 2.95.x or 3.0 to compile your binaries, you may need
+to add the @samp{-fprofile-arcs} to the compile command line in order
+for the call graphs to be properly stored in gmon.out.
+
@code{Gprof} calculates the amount of time spent in each routine.
Next, these times are propagated along the edges of the call graph.
Cycles are discovered, and calls into a cycle are made to share the time
@@ -276,6 +280,11 @@ to do the linking, simply specify @samp{
options. The same option, @samp{-pg}, alters either compilation or linking
to do what is necessary for profiling. Here are examples:
+If you use gcc 2.95.x or 3.0.x, you may need to add the
+@samp{-fprofile-arcs} option to the compile line along with @samp{-pg}
+in order to allow the call-graphs to be properly included in the gmon.out
+file.
+
@example
cc -g -c myprog.c utils.c -pg
cc -o myprog myprog.o utils.o -pg

View File

@@ -0,0 +1,13 @@
Author: Chris Chimelis <chris@debian.org>
Description: Don't mention monitor(3) which doesn't exist in Debian. (#160654)
--- a/gprof/gprof.texi
+++ b/gprof/gprof.texi
@@ -193,7 +193,7 @@ summarized dynamic call graph and profil
@c man end
@c man begin SEEALSO
-monitor(3), profil(2), cc(1), prof(1), and the Info entry for @file{gprof}.
+cc(1), prof(1), and the Info entry for @file{gprof}.
``An Execution Profiler for Modular Programs'',
by S. Graham, P. Kessler, M. McKusick;

View File

@@ -0,0 +1,19 @@
Author: David Kimdon <dwhedon@gordian.com>
Description: Specify which filename is causing an error if the filename is a
directory. (#45832)
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -234,6 +234,13 @@ bfd_fopen (const char *filename, const c
{
bfd *nbfd;
const bfd_target *target_vec;
+ struct stat s;
+
+ if (stat (filename, &s) == 0)
+ if (S_ISDIR(s.st_mode)) {
+ bfd_set_error (bfd_error_file_not_recognized);
+ return NULL;
+ }
nbfd = _bfd_new_bfd ();
if (nbfd == NULL)

View File

@@ -0,0 +1,13 @@
Author: Matthias Klose <doko@ubuntu.com>
Description: Explicitly use bash for the ld testsuite.
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -200,7 +200,7 @@ load_lib ld-lib.exp
proc get_target_emul {} {
global target_triplet
global srcdir
- set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
+ set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
if $status { error "Error getting emulation name: $result" }
return $result
}

View File

@@ -0,0 +1,15 @@
--- a/ld/emulparams/elf32ppccommon.sh
+++ b/ld/emulparams/elf32ppccommon.sh
@@ -56,3 +56,12 @@ case `echo "$target" | sed -e 's/-.*//'`
*:*64*) LIBPATH_SUFFIX=64 ;;
*:*32*) LIBPATH_SUFFIX=32 ;;
esac
+
+# On 64bit, look for 32 bit target libraries in /lib32, /usr/lib32 etc., first.
+case "$target" in
+ powerpc64-*-linux* | ppc64-*-linux*)
+ case "$EMULATION_NAME" in
+ *32*) LIBPATH_SUFFIX=32 ;;
+ esac
+ ;;
+esac

View File

@@ -0,0 +1,261 @@
# DP: Add multiarch directories to linker search path for ld and gold.
--- a/ld/genscripts.sh
+++ b/ld/genscripts.sh
@@ -244,6 +244,104 @@ append_to_lib_path()
fi
}
+# set the multiarch tuples
+multiarch_name=
+multiarch_name_32=
+multiarch_name_64=
+multiarch_name_n32=
+multiarch_name_x32=
+
+if true; then
+ # based on TOOL_LIB
+ multiarch_name=$DEB_TARGET_MULTIARCH
+ multiarch_name_32=$DEB_TARGET_MULTIARCH32
+ multiarch_name_64=$DEB_TARGET_MULTIARCH64
+ multiarch_name_n32=$DEB_TARGET_MULTIARCHN32
+ multiarch_name_x32=$DEB_TARGET_MULTIARCHX32
+else
+ # based on the emulation name; using TOOL_LIB seems to unreliable, when
+ # configuring with --enable-targets=powerpc-linux-gnu,powerpc64-linux-gnu
+ # only the first one (?) wins.
+ # FIXME: should this go into ld/emulparams/*.sh ?
+ case "$EMULATION_NAME" in
+ aarch64linux)
+ multiarch_name=aarch64-linux-gnu
+ ;;
+ aarch64linux32)
+ multiarch_name=aarch64_ilp32-linux-gnu
+ ;;
+ aarch64linux32b)
+ multiarch_name=aarch64_be_ilp32-linux-gnu
+ ;;
+ aarch64linuxb)
+ multiarch_name=aarch64_be-linux-gnu
+ ;;
+ armelf_linux_eabi)
+ # FIXME: TOOL_LIB can be arm-linux-gnueabi, arm-linux-gnueabihf, aarch64-linux-gnu
+ multiarch_name=arm-linux-gnueabi
+ ;;
+ armelfb_linux_eabi)
+ # FIXME: TOOL_LIB can be arm-linux-gnueabi, arm-linux-gnueabihf, aarch64-linux-gnu
+ multiarch_name=armeb-linux-gnueabi
+ ;;
+ elf32_sparc)
+ multiarch_name=sparc-linux-gnu
+ multiarch_name_64=sparc64-linux-gnu
+ ;;
+ elf32_x86_64)
+ multiarch_name=x86_64-linux-gnux32
+ multiarch_name_32=i386-linux-gnu
+ multiarch_name_64=x86_64-linux-gnu
+ ;;
+ elf32btsmip)
+ ;;
+ elf32btsmipn32)
+ ;;
+ elf32ltsmip)
+ ;;
+ elf32ltsmipn32)
+ ;;
+ elf32elflppc) # necessary?
+ multiarch_name=powerpcle-linux-gnu
+ multiarch_name_64=powerpc64le-linux-gnu
+ ;;
+ elf32elflppclinux)
+ multiarch_name=powerpcle-linux-gnu
+ multiarch_name_64=powerpc64le-linux-gnu
+ ;;
+ elf32ppc) # necessary?
+ multiarch_name=powerpc-linux-gnu
+ multiarch_name_64=powerpc64-linux-gnu
+ ;;
+ elf32ppclinux)
+ multiarch_name=powerpc-linux-gnu
+ multiarch_name_64=powerpc64-linux-gnu
+ ;;
+ elf64ppc)
+ multiarch_name=powerpc64-linux-gnu
+ multiarch_name_32=powerpc-linux-gnu
+ ;;
+ esac
+fi
+
+if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
+ libs=${NATIVE_LIB_DIRS}
+ if [ "x${NATIVE}" = "xyes" ] ; then
+ case " ${libs} " in
+ *" ${libdir} "*) ;;
+ *) libs="${libdir} ${libs}" ;;
+ esac
+ fi
+ append_to_lib_path ${libs}
+fi
+
+case :${lib_path1}:${lib_path2}: in
+ *:: | ::*) LIB_PATH=${lib_path1}${lib_path2} ;;
+ *) LIB_PATH=${lib_path1}:${lib_path2} ;;
+esac
+lib_path1=
+lib_path2=
+
# Always search $(tooldir)/lib, aka /usr/local/TARGET/lib when native
# except when LIBPATH=":".
if [ "${LIB_PATH}" != ":" ] ; then
@@ -262,6 +360,13 @@ if [ "${LIB_PATH}" != ":" ] ; then
case "${NATIVE}:${libpath_suffix}:${TOOL_LIB}" in
:* | *::* | *:*:*${libpath_suffix}) ;;
*) libs="${exec_prefix}/${target_alias}/lib${libpath_suffix}" ;;
+ *)
+ # FIXME:
+ # For the binutils-multiarch build on x86_64-linux-gnu configured
+ # with --enable-targets=powerpc-linux-gnu, /usr/x86_64-linux-gnu/lib64
+ # is added instead of /usr/powerpc64-linux-gnu/lib64. However this
+ # probably wanted for the "default" emulation. How to detect that?
+ libs="${exec_prefix}/${target_alias}/lib${libpath_suffix}" ;;
esac
done
libs="${exec_prefix}/${TOOL_LIB}/lib ${libs}"
@@ -269,24 +374,124 @@ if [ "${LIB_PATH}" != ":" ] ; then
append_to_lib_path ${libs}
fi
-if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
- libs=${NATIVE_LIB_DIRS}
- if [ "x${NATIVE}" = "xyes" ] ; then
- case " ${libs} " in
- *" ${libdir} "*) ;;
- *) libs="${libdir} ${libs}" ;;
- esac
- fi
- append_to_lib_path ${libs}
-fi
-
case :${lib_path1}:${lib_path2}: in
- *:: | ::*) LIB_PATH=${lib_path1}${lib_path2} ;;
- *) LIB_PATH=${lib_path1}:${lib_path2} ;;
+ *:: | ::*) LIB_PATH=${LIB_PATH}:${lib_path1}${lib_path2} ;;
+ *) LIB_PATH=${LIB_PATH}:${lib_path1}:${lib_path2} ;;
esac
+# We use the $tool_lib variable in our multiarch mangling:
+if [ "x${TOOL_LIB}" = "x" ] ; then
+ tool_lib=${exec_prefix}/${target_alias}/lib
+else
+ tool_lib=${exec_prefix}/${TOOL_LIB}/lib
+fi
+
+# FIXME: why again? These already should be in LIBPATH
+if [ "x${APPEND_TOOLLIBDIR}" = "xyes" ] ; then
+ LIB_PATH=${LIB_PATH}:${tool_lib}
+ # For multilib targets, search both $tool_lib dirs
+ if [ "x${LIBPATH_SUFFIX}" != "x" ] ; then
+ LIB_PATH=${LIB_PATH}:${tool_lib}${LIBPATH_SUFFIX}
+ fi
+fi
+
LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
+if [ -n "$multiarch_name" ]; then
+ temp_dirs=' '
+ ma_dirs=' '
+ for dir in `echo ${LIB_PATH} | sed -e 's/:/ /g'`; do
+ case "$dir" in
+ *${tool_lib}*|*/${target_alias}/*)
+ ;;
+ */lib)
+ if [ -n "$multiarch_name_32" ]; then
+ case $EMULATION_NAME in
+ elf_i386|elf32*)
+ ma_dirs="${ma_dirs}${dir}/$multiarch_name_32 ";;
+ *)
+ ma_dirs="${ma_dirs}${dir}/$multiarch_name "
+ esac
+ elif [ -n "$multiarch_name_64" ]; then
+ case $EMULATION_NAME in
+ elf*_64|elf64*)
+ ma_dirs="${ma_dirs}${dir}/$multiarch_name_64 ";;
+ *)
+ ma_dirs="${ma_dirs}${dir}/$multiarch_name "
+ esac
+ else
+ ma_dirs="${ma_dirs}${dir}/$multiarch_name "
+ fi
+ ;;
+ */lib32)
+ if [ -n "$multiarch_name_32" ]; then
+ dir2=$(echo $dir | sed "s,32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name_32 "
+ fi
+ ;;
+ */lib64)
+ case "${target}" in
+ aarch64*-*-*|powerpc64-*-*|s390x-*-*|sparc64-*-*|x86_64-*-linux-gnu|mips64-*-gnuabi64)
+ #dir=$(echo $dir | sed "s,64$,,")
+ dir2=$(echo $dir | sed "s,64$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name "
+ ;;
+ *)
+ if [ -n "$multiarch_name_64" ]; then
+ dir2=$(echo $dir | sed "s,64$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name_64 "
+ fi
+ ;;
+ esac
+ ;;
+ */libx32)
+ case "${target}" in
+ x86_64-*-linux-gnux32)
+ dir2=$(echo $dir | sed "s,x32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name "
+ ;;
+ *)
+ if [ -n "$multiarch_name_x32" ]; then
+ dir2=$(echo $dir | sed "s,x32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name_x32 "
+ fi
+ ;;
+ esac
+ ;;
+ */libn32)
+ case "${target}" in
+ mips64*-*-linux-gnuabin32)
+ dir2=$(echo $dir | sed "s,n32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name "
+ ;;
+ *)
+ if [ -n "$multiarch_name_n32" ]; then
+ dir2=$(echo $dir | sed "s,n32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name_n32 "
+ fi
+ ;;
+ esac
+ ;;
+ */libilp32)
+ if [ -n "$multiarch_name_32" ]; then
+ dir2=$(echo $dir | sed "s,ilp32$,,")
+ ma_dirs="${ma_dirs}${dir2}/$multiarch_name_32 "
+ fi
+ ;;
+ *)
+ ;;
+ esac
+ temp_dirs="${temp_dirs}${dir} "
+ done
+ LIB_SEARCH_DIRS=
+ for dir in $ma_dirs $temp_dirs; do
+ if echo "$LIB_SEARCH_DIRS" | fgrep -q "\"$dir\""; then
+ continue
+ fi
+ LIB_SEARCH_DIRS="${LIB_SEARCH_DIRS}SEARCH_DIR(\"$dir\"); "
+ done
+fi
+
# We need it for testsuite.
set $EMULATION_LIBPATH
if [ "x$1" = "x$EMULATION_NAME" ]; then

View File

@@ -0,0 +1,45 @@
Author:
Description: Description: Fix ld-bootstrap testsuite when configured with --enable-plugins
Author: Rafael Espindola
Upstream status: proposed patch
--- a/ld/testsuite/ld-bootstrap/bootstrap.exp
+++ b/ld/testsuite/ld-bootstrap/bootstrap.exp
@@ -56,6 +56,15 @@ if [check_plugin_api_available] {
set plugins "yes"
}
+remote_exec host "$nm --help" "" "/dev/null" "plugin-support"
+set tmp [file_contents "plugin-support"]
+regexp ".*\(--plugin\).*\n" $tmp foo plugins
+if [info exists plugins] then {
+ set plugins "yes"
+} else {
+ set plugins "no"
+}
+
# Bootstrap ld. First link the object files together using -r, in
# order to test -r. Then link the result into an executable, ld1, to
# really test -r. Use ld1 to link a fresh ld, ld2. Use ld2 to link a
@@ -130,6 +139,11 @@ foreach flags $test_flags {
continue
}
+ if { $flags == "--static" && $plugins == "yes" } then {
+ untested $testname
+ continue
+ }
+
# If we only have a shared libbfd, we probably can't run the
# --static test.
if { $flags == "--static" && ! [string match "*libbfd.a*" $BFDLIB] } then {
@@ -184,6 +198,10 @@ foreach flags $test_flags {
}
}
+ if { $plugins == "yes" } {
+ set extralibs "$extralibs -ldl"
+ }
+
# On Irix 5, linking with --static only works if all the files are
# compiled using -non_shared.
if {"$flags" == "--static"} {

38
debian/patches/135_bfd_soversion.patch vendored Normal file
View File

@@ -0,0 +1,38 @@
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -986,14 +986,14 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
$(AM_V_GEN)\
bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
bfd_version_string="\"$(VERSION)\"" ;\
- bfd_soversion="$(VERSION)" ;\
+ bfd_soversion="$(VERSION)$(BFD_SOVER_EXT)" ;\
bfd_version_package="\"$(PKGVERSION)\"" ;\
report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
. $(srcdir)/development.sh ;\
if test "$$development" = true ; then \
bfd_version_date=`$(SED) -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
+ bfd_soversion="$(VERSION)$(BFD_SOVER_EXT).$${bfd_version_date}" ;\
fi ;\
$(SED) -e "s,@bfd_version@,$$bfd_version," \
-e "s,@bfd_version_string@,$$bfd_version_string," \
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -2455,14 +2455,14 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
$(AM_V_GEN)\
bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
bfd_version_string="\"$(VERSION)\"" ;\
- bfd_soversion="$(VERSION)" ;\
+ bfd_soversion="$(VERSION)$(BFD_SOVER_EXT)" ;\
bfd_version_package="\"$(PKGVERSION)\"" ;\
report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
. $(srcdir)/development.sh ;\
if test "$$development" = true ; then \
bfd_version_date=`$(SED) -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
- bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
+ bfd_soversion="$(VERSION)$(BFD_SOVER_EXT).$${bfd_version_date}" ;\
fi ;\
$(SED) -e "s,@bfd_version@,$$bfd_version," \
-e "s,@bfd_version_string@,$$bfd_version_string," \

25
debian/patches/136_bfd_pic.patch vendored Normal file
View File

@@ -0,0 +1,25 @@
Author: Balint Reczey <balint@balintreczey.hu>
Description: Build libbfd with -fPIC to allow linking with PIE binaries
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -57,7 +57,7 @@ ZLIBINC = @zlibinc@
WARN_CFLAGS = @WARN_CFLAGS@
NO_WERROR = @NO_WERROR@
-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(ZSTD_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(ZSTD_CFLAGS) -fPIC
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' @LARGEFILE_CPPFLAGS@
if PLUGINS
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -524,7 +524,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel
# case both are empty.
ZLIB = @zlibdir@ -lz
ZLIBINC = @zlibinc@
-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(ZSTD_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(ZSTD_CFLAGS) -fPIC
AM_CPPFLAGS = -DBINDIR='"$(bindir)"' -DLIBDIR='"$(libdir)"' \
@LARGEFILE_CPPFLAGS@ @HDEFINES@ @COREFLAG@ @TDEFINES@ \
$(CSEARCH) $(CSWITCHES) $(HAVEVECS) @INCINTL@

View File

@@ -0,0 +1,11 @@
--- a/binutils/arlex.l
+++ b/binutils/arlex.l
@@ -78,7 +78,7 @@ int linenumber;
"(" { return '('; }
")" { return ')'; }
"," { return ','; }
-[A-Za-z0-9/\\$:.\-\_\+]+ {
+[A-Za-z0-9/\\$:.\-\_\+~]+ {
yylval.name = xstrdup (yytext);
return FILENAME;
}

42
debian/patches/158_ld_system_root.patch vendored Normal file
View File

@@ -0,0 +1,42 @@
Index: b/ld/configure.ac
===================================================================
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -56,7 +56,9 @@
*) TARGET_SYSTEM_ROOT=$with_sysroot ;;
esac
+ if test "x$TARGET_SYSTEM_ROOT" != x/; then
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
+ fi
use_sysroot=yes
if test "x$prefix" = xNONE; then
Index: b/ld/configure
===================================================================
--- a/ld/configure
+++ b/ld/configure
@@ -4283,7 +4283,9 @@
*) TARGET_SYSTEM_ROOT=$with_sysroot ;;
esac
+ if test "x$TARGET_SYSTEM_ROOT" != x/; then
TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
+ fi
use_sysroot=yes
if test "x$prefix" = xNONE; then
Index: b/ld/ldmain.c
===================================================================
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -226,8 +226,8 @@
{
if (*TARGET_SYSTEM_ROOT == 0)
{
- einfo ("%P%F: this linker was not configured to use sysroots\n");
ld_sysroot = "";
+ ld_canon_sysroot = "";
}
else
ld_canon_sysroot = lrealpath (ld_sysroot);

View File

@@ -0,0 +1,14 @@
# DP: In ld.texi, remove cross reference to BFD internals documentation.
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -9717,7 +9717,8 @@ may be spent optimizing algorithms for a
One minor artifact of the BFD solution which you should bear in
mind is the potential for information loss. There are two places where
useful information can be lost using the BFD mechanism: during
-conversion and during output. @xref{BFD information loss}.
+conversion and during output. See BFD information loss in the BFD
+internal documentation.
@menu
* BFD outline:: How it works: an outline of BFD

25
debian/patches/aarch64-libpath.diff vendored Normal file
View File

@@ -0,0 +1,25 @@
--- a/ld/emulparams/aarch64linux.sh
+++ b/ld/emulparams/aarch64linux.sh
@@ -40,12 +40,15 @@ PLT=".plt ${RELOCATING-0} : ALI
# Linux modifies the default library search path to first include
# a 64-bit specific directory.
-case "$target" in
- aarch64*-linux*)
- case "$EMULATION_NAME" in
- aarch64linux*) LIBPATH_SUFFIX=64 ;;
- esac
- ;;
-esac
+
+# not for multiarch systems ...
+
+#case "$target" in
+# aarch64*-linux*)
+# case "$EMULATION_NAME" in
+# aarch64linux*) LIBPATH_SUFFIX=64 ;;
+# esac
+# ;;
+#esac
ELF_INTERPRETER_NAME=\"/lib/ld-linux-aarch64.so.1\"

30
debian/patches/armhf-64k-alignment.diff vendored Normal file
View File

@@ -0,0 +1,30 @@
The upstream binutils commit below reduced the section alignment of
armhf executables (including shared libraries) from 64k to 4k, on the
basis that the additional bloat is not justified, given that arm64 hosts
running 64k pagesize kernels with armhf user space are not used in
practice.
However, the situation is slightly different today on Debian, where a
16k pagesize kernel is provided that enables compat support, and is
therefore able to execute armhf user space. The only impediment is the
fact that armhf binaries are no longer compatible with this, due to the
change below.
To accommodate this use case, revert the patch. This makes the generated
executables compatible with compat mode on arm64 systems running 16k
kernels.
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -20356,7 +20356,11 @@ elf32_arm_backend_symbol_processing (bfd
#define ELF_ARCH bfd_arch_arm
#define ELF_TARGET_ID ARM_ELF_DATA
#define ELF_MACHINE_CODE EM_ARM
+#ifdef __QNXTARGET__
#define ELF_MAXPAGESIZE 0x1000
+#else
+#define ELF_MAXPAGESIZE 0x10000
+#endif
#define ELF_COMMONPAGESIZE 0x1000
#define bfd_elf32_mkobject elf32_arm_mkobject

1369
debian/patches/branch-updates.diff vendored Normal file

File diff suppressed because it is too large Load Diff

540
debian/patches/branch-version.diff vendored Normal file
View File

@@ -0,0 +1,540 @@
# DP: Don't bump the version when doing distro builds
git diff 2a07e06e26918c83071cb7c5789439315f505430 2bc7af1ff7732451b6a7b09462a815c3284f9613
diff --git a/bfd/configure b/bfd/configure
index 86561b30ac4..ec09f5bc834 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for bfd 2.45.0.
+# Generated by GNU Autoconf 2.69 for bfd 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='bfd'
PACKAGE_TARNAME='bfd'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='bfd 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='bfd 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1409,7 +1409,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures bfd 2.45.0 to adapt to many kinds of systems.
+\`configure' configures bfd 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1480,7 +1480,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of bfd 2.45.0:";;
+ short | recursive ) echo "Configuration of bfd 2.45:";;
esac
cat <<\_ACEOF
@@ -1625,7 +1625,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-bfd configure 2.45.0
+bfd configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2219,7 +2219,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by bfd $as_me 2.45.0, which was
+It was created by bfd $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3202,7 +3202,7 @@ fi
# Define the identity of the package.
PACKAGE='bfd'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -17754,7 +17754,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by bfd $as_me 2.45.0, which was
+This file was extended by bfd $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -17820,7 +17820,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-bfd config.status 2.45.0
+bfd config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/bfd/development.sh b/bfd/development.sh
index b8014261bfb..8b004da7d52 100644
--- a/bfd/development.sh
+++ b/bfd/development.sh
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Controls whether to enable development-mode features by default.
-development=true
+development=false
# Indicate whether this is a release branch.
experimental=false
diff --git a/bfd/version.m4 b/bfd/version.m4
index 848470098f5..00d03934d68 100644
--- a/bfd/version.m4
+++ b/bfd/version.m4
@@ -1 +1 @@
-m4_define([BFD_VERSION], [2.45.0])
+m4_define([BFD_VERSION], [2.45])
diff --git a/binutils/configure b/binutils/configure
index 0ff4539f458..94be22505d4 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for binutils 2.45.0.
+# Generated by GNU Autoconf 2.69 for binutils 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='binutils'
PACKAGE_TARNAME='binutils'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='binutils 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='binutils 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1407,7 +1407,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures binutils 2.45.0 to adapt to many kinds of systems.
+\`configure' configures binutils 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1478,7 +1478,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of binutils 2.45.0:";;
+ short | recursive ) echo "Configuration of binutils 2.45:";;
esac
cat <<\_ACEOF
@@ -1640,7 +1640,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-binutils configure 2.45.0
+binutils configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2108,7 +2108,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by binutils $as_me 2.45.0, which was
+It was created by binutils $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3091,7 +3091,7 @@ fi
# Define the identity of the package.
PACKAGE='binutils'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -16879,7 +16879,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by binutils $as_me 2.45.0, which was
+This file was extended by binutils $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -16945,7 +16945,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-binutils config.status 2.45.0
+binutils config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/gas/configure b/gas/configure
index ca149e79195..9c640c870cd 100755
--- a/gas/configure
+++ b/gas/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for gas 2.45.0.
+# Generated by GNU Autoconf 2.69 for gas 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='gas'
PACKAGE_TARNAME='gas'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='gas 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='gas 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1393,7 +1393,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures gas 2.45.0 to adapt to many kinds of systems.
+\`configure' configures gas 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1464,7 +1464,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of gas 2.45.0:";;
+ short | recursive ) echo "Configuration of gas 2.45:";;
esac
cat <<\_ACEOF
@@ -1621,7 +1621,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-gas configure 2.45.0
+gas configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2032,7 +2032,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by gas $as_me 2.45.0, which was
+It was created by gas $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3012,7 +3012,7 @@ fi
# Define the identity of the package.
PACKAGE='gas'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -16548,7 +16548,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by gas $as_me 2.45.0, which was
+This file was extended by gas $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -16614,7 +16614,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-gas config.status 2.45.0
+gas config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/gprof/configure b/gprof/configure
index e40de173a1e..36ac75e49b3 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for gprof 2.45.0.
+# Generated by GNU Autoconf 2.69 for gprof 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='gprof'
PACKAGE_TARNAME='gprof'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='gprof 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='gprof 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1351,7 +1351,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures gprof 2.45.0 to adapt to many kinds of systems.
+\`configure' configures gprof 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1422,7 +1422,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of gprof 2.45.0:";;
+ short | recursive ) echo "Configuration of gprof 2.45:";;
esac
cat <<\_ACEOF
@@ -1541,7 +1541,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-gprof configure 2.45.0
+gprof configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1906,7 +1906,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by gprof $as_me 2.45.0, which was
+It was created by gprof $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2886,7 +2886,7 @@ fi
# Define the identity of the package.
PACKAGE='gprof'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -14255,7 +14255,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by gprof $as_me 2.45.0, which was
+This file was extended by gprof $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -14321,7 +14321,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-gprof config.status 2.45.0
+gprof config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/ld/configure b/ld/configure
index 4afc58566fc..78b54b39eb2 100755
--- a/ld/configure
+++ b/ld/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for ld 2.45.0.
+# Generated by GNU Autoconf 2.69 for ld 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='ld'
PACKAGE_TARNAME='ld'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='ld 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='ld 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1436,7 +1436,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures ld 2.45.0 to adapt to many kinds of systems.
+\`configure' configures ld 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1507,7 +1507,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of ld 2.45.0:";;
+ short | recursive ) echo "Configuration of ld 2.45:";;
esac
cat <<\_ACEOF
@@ -1690,7 +1690,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-ld configure 2.45.0
+ld configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2222,7 +2222,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by ld $as_me 2.45.0, which was
+It was created by ld $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3206,7 +3206,7 @@ fi
# Define the identity of the package.
PACKAGE='ld'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -19661,7 +19661,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by ld $as_me 2.45.0, which was
+This file was extended by ld $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -19727,7 +19727,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-ld config.status 2.45.0
+ld config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/opcodes/configure b/opcodes/configure
index 3dd6b692f89..d878234c88f 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for opcodes 2.45.0.
+# Generated by GNU Autoconf 2.69 for opcodes 2.45.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +587,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='opcodes'
PACKAGE_TARNAME='opcodes'
-PACKAGE_VERSION='2.45.0'
-PACKAGE_STRING='opcodes 2.45.0'
+PACKAGE_VERSION='2.45'
+PACKAGE_STRING='opcodes 2.45'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1368,7 +1368,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures opcodes 2.45.0 to adapt to many kinds of systems.
+\`configure' configures opcodes 2.45 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1439,7 +1439,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of opcodes 2.45.0:";;
+ short | recursive ) echo "Configuration of opcodes 2.45:";;
esac
cat <<\_ACEOF
@@ -1560,7 +1560,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-opcodes configure 2.45.0
+opcodes configure 2.45
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1971,7 +1971,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by opcodes $as_me 2.45.0, which was
+It was created by opcodes $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -2951,7 +2951,7 @@ fi
# Define the identity of the package.
PACKAGE='opcodes'
- VERSION='2.45.0'
+ VERSION='2.45'
cat >>confdefs.h <<_ACEOF
@@ -14623,7 +14623,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by opcodes $as_me 2.45.0, which was
+This file was extended by opcodes $as_me 2.45, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -14689,7 +14689,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-opcodes config.status 2.45.0
+opcodes config.status 2.45
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

435
debian/patches/env-package-metadata.diff vendored Normal file
View File

@@ -0,0 +1,435 @@
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -98,6 +98,18 @@ ldelf_after_parse (void)
fatal (_("%P: common page size (0x%v) > maximum page size (0x%v)\n"),
link_info.commonpagesize, link_info.maxpagesize);
}
+
+ if (!ldelf_emit_note_fdo_package_metadata)
+ {
+ char *package_metadata = getenv("ELF_PACKAGE_METADATA");
+
+ if (package_metadata)
+ {
+ char * const p = xmalloc (strlen (package_metadata) + 1);
+ strcpy (p, package_metadata);
+ ldelf_emit_note_fdo_package_metadata = (const char *)p;
+ }
+ }
}
/* Handle the generation of DT_NEEDED tags. */
--- a/Makefile.in
+++ b/Makefile.in
@@ -2823,6 +2823,8 @@ do-check:
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ echo "Unset ELF_PACKAGE_METADATA for tests"; \
+ export -n ELF_PACKAGE_METADATA; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
# Automated reporting of test results.
@@ -4328,6 +4330,7 @@ check-bfd:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/bfd && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -5468,6 +5471,7 @@ check-opcodes:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/opcodes && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -6608,6 +6612,7 @@ check-binutils:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/binutils && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -7533,6 +7538,7 @@ check-cgen:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/cgen && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -8001,6 +8007,7 @@ check-dejagnu:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/dejagnu && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -8469,6 +8476,7 @@ check-etc:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/etc && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -10094,6 +10102,7 @@ check-fixincludes:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/fixincludes && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -11674,6 +11683,7 @@ check-gas:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gas && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -12823,6 +12833,7 @@ check-gcc:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gcc && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -13972,6 +13983,7 @@ check-gmp:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gmp && \
$(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -15109,6 +15121,7 @@ check-mpfr:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/mpfr && \
$(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -16246,6 +16259,7 @@ check-mpc:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/mpc && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -17383,6 +17397,7 @@ check-isl:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/isl && \
$(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -18511,6 +18526,7 @@ check-gold:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gold && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -18965,6 +18981,7 @@ check-gprof:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gprof && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -19433,6 +19450,7 @@ check-gprofng:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gprofng && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -20596,6 +20614,7 @@ check-gettext:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gettext && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -20899,6 +20918,7 @@ check-tcl:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/tcl && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -21352,6 +21372,7 @@ check-itcl:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/itcl && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -22506,6 +22527,7 @@ check-ld:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/ld && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -23646,6 +23668,7 @@ check-libbacktrace:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libbacktrace && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -24786,6 +24809,7 @@ check-libcpp:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libcpp && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -25926,6 +25950,7 @@ check-libcody:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libcody && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -26915,6 +26940,7 @@ check-libdecnumber:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libdecnumber && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -27354,6 +27380,7 @@ check-libgui:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libgui && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -28517,6 +28544,7 @@ check-libiberty:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libiberty && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -29666,6 +29694,7 @@ check-libiberty-linker-plugin:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
$(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -30815,6 +30844,7 @@ check-libiconv:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libiconv && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -31164,6 +31194,7 @@ check-m4:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/m4 && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -31632,6 +31663,7 @@ check-readline:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/readline && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -32100,6 +32132,7 @@ check-sid:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/sid && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -32568,6 +32601,7 @@ check-sim:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/sim && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -33036,6 +33070,7 @@ check-texinfo:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/texinfo && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -34623,6 +34658,7 @@ check-gnulib:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gnulib && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -35091,6 +35127,7 @@ check-gdbsupport:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gdbsupport && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -35559,6 +35596,7 @@ check-gdbserver:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gdbserver && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -36027,6 +36065,7 @@ check-gdb:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gdb && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -36495,6 +36534,7 @@ check-expect:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/expect && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -36963,6 +37003,7 @@ check-guile:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/guile && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -37431,6 +37472,7 @@ check-tk:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/tk && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -38763,6 +38805,7 @@ check-c++tools:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/c++tools && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -39215,6 +39258,7 @@ check-gnattools:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gnattools && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -40378,6 +40422,7 @@ check-lto-plugin:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/lto-plugin && \
$(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -40832,6 +40877,7 @@ check-libcc1:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libcc1 && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -41300,6 +41346,7 @@ check-gotools:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/gotools && \
$(MAKE) $(FLAGS_TO_PASS) check)
@@ -42454,6 +42501,7 @@ check-libctf:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libctf && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -43594,6 +43642,7 @@ check-libsframe:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libsframe && \
$(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
@@ -44048,6 +44097,7 @@ check-libgrust:
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/libgrust && \
$(MAKE) $(FLAGS_TO_PASS) check)
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1008,6 +1008,8 @@ do-check:
@: $(MAKE); $(unstage)
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ echo "Unset ELF_PACKAGE_METADATA for tests"; \
+ export -n ELF_PACKAGE_METADATA; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
# Automated reporting of test results.
@@ -1389,6 +1391,7 @@ check-[+module+]:
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) [+ IF bootstrap +]$(EXTRA_HOST_EXPORTS)[+
ENDIF bootstrap +] \
+ export -n ELF_PACKAGE_METADATA; \
(cd $(HOST_SUBDIR)/[+module+] && \
$(MAKE) $(FLAGS_TO_PASS) [+extra_make_flags+][+
IF bootstrap +] $(EXTRA_BOOTSTRAP_FLAGS)[+ ENDIF bootstrap +] check)

14
debian/patches/gprof-build.diff vendored Normal file
View File

@@ -0,0 +1,14 @@
# DP: Fix gprof build error.
--- a/gprof/gconfig.in
+++ b/gprof/gconfig.in
@@ -117,9 +117,6 @@
#endif
-/* Version number of package */
-#undef VERSION
-
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1

54
debian/patches/gprofng-cross-build.diff vendored Normal file
View File

@@ -0,0 +1,54 @@
--- a/gprofng/configure.ac
+++ b/gprofng/configure.ac
@@ -212,24 +212,22 @@ AM_ZLIB
# Generate manpages, if possible.
build_man=false
build_doc=false
-if test $cross_compiling = no; then
- AC_CHECK_PROGS([MAKEINFO], makeinfo, [$MISSING makeinfo])
- case "x$MAKEINFO" in
- x | */missing\ makeinfo*)
- AC_MSG_WARN([gprofng: makeinfo is missing. Info documentation will not be built.])
- ;;
- *)
- case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
- x*\ [[1-5]].*|x*\ 6.[[0-4]].* )
- AC_MSG_WARN([gprofng: $MAKEINFO is too old. Info documentation will not be built.])
- MAKEINFO="@echo $MAKEINFO is too old, 6.5 or newer required; true"
- ;;
- x* ) build_doc=true ;;
- esac
- ;;
- esac
- AC_SUBST(MAKEINFO)
-fi
+AC_CHECK_PROGS([MAKEINFO], makeinfo, [$MISSING makeinfo])
+case "x$MAKEINFO" in
+ x | */missing\ makeinfo*)
+ AC_MSG_WARN([gprofng: makeinfo is missing. Info documentation will not be built.])
+ ;;
+ *)
+ case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
+ x*\ [[1-5]].*|x*\ 6.[[0-4]].* )
+ AC_MSG_WARN([gprofng: $MAKEINFO is too old. Info documentation will not be built.])
+ MAKEINFO="@echo $MAKEINFO is too old, 6.5 or newer required; true"
+ ;;
+ x* ) build_doc=true ;;
+ esac
+ ;;
+ esac
+AC_SUBST(MAKEINFO)
AM_CONDITIONAL([BUILD_MAN], [test x$build_man = xtrue])
AM_CONDITIONAL([BUILD_DOC], [test x$build_doc = xtrue])
--- a/gprofng/configure
+++ b/gprofng/configure
@@ -17011,7 +17011,7 @@ fi
# Generate manpages, if possible.
build_man=false
build_doc=false
-if test $cross_compiling = no; then
+if :; then
for ac_prog in makeinfo
do
# Extract the first word of "$ac_prog", so it can be a program name with args.

View File

@@ -0,0 +1,28 @@
Author: James Addison <jay@jp-hosting.net>
Description: Generate a deterministic gprofng example documentation tarball
Bug-Debian: https://bugs.debian.org/1090395
Bug-Debian: https://bugs.debian.org/1092870
Last-Update: 2025-01-13
--- a/gprofng/doc/Makefile.am
+++ b/gprofng/doc/Makefile.am
@@ -61,7 +61,7 @@ EXTRA_DIST = $(man_MANS) version.texi
info: $(man_MANS)
examples.tar.gz:
- $(AM_V_at)( tar czf $@ $(srcdir)/../examples )
+ $(AM_V_at)( tar czf $@ --sort=name --mtime="@${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime --mode=a=rX,u+w $(srcdir)/../examples )
.PHONY: install-data-local
--- a/gprofng/doc/Makefile.in
+++ b/gprofng/doc/Makefile.in
@@ -895,7 +895,7 @@ gprofng-display-text.1: $(srcdir)/gprofn
info: $(man_MANS)
examples.tar.gz:
- $(AM_V_at)( tar czf $@ $(srcdir)/../examples )
+ $(AM_V_at)( tar czf $@ --sort=name --mtime="@${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime --mode=a=rX,u+w $(srcdir)/../examples )
.PHONY: install-data-local

1030
debian/patches/libctf-soname.diff vendored Normal file

File diff suppressed because it is too large Load Diff

12
debian/patches/mips-hack.diff vendored Normal file
View File

@@ -0,0 +1,12 @@
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -16762,6 +16762,9 @@ parse_code_option (char * name)
else
return OPTION_TYPE_BAD;
+ if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
+ mips_opts.isa = ISA_MIPS2;
+
return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
}

8
debian/patches/perl-shebang.diff vendored Normal file
View File

@@ -0,0 +1,8 @@
--- a/gprofng/gp-display-html/gp-display-html.in
+++ b/gprofng/gp-display-html/gp-display-html.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Copyright (C) 2021-2025 Free Software Foundation, Inc.
# Contributed by Oracle.
#

158
debian/patches/pr-ld-16428.diff vendored Normal file
View File

@@ -0,0 +1,158 @@
# DP: Proposed patch for PR ld/16428, disallow -shared/-pie, -shared/-static, -pie/-static.
2014-01-10 H.J. Lu <hongjiu.lu@intel.com>
PR ld/16428
* ld.texinfo: Updated for -static/-non_shared change.
* ldlex.h (option_values): Add OPTION_STATIC.
* lexsup.c (ld_options): Use OPTION_STATIC for -static/-non_shared.
(parse_args): Handle OPTION_STATIC. Disallow -shared and -pie,
-shared and -static, -pie and -static.
2014-01-10 H.J. Lu <hongjiu.lu@intel.com>
PR ld/16428
* ld-elf/pr16428a.d: New file.
* ld-elf/pr16428b.d: Likewise.
* ld-elf/pr16428c.d: Likewise.
* ld-elf/pr16428d.d: Likewise.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index ae3d568..bddfdfe 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1204,11 +1204,11 @@ platforms for which shared libraries are supported. The different
variants of this option are for compatibility with various systems. You
may use this option multiple times on the command line: it affects
library searching for @option{-l} options which follow it. This
-option also implies @option{--unresolved-symbols=report-all}. This
-option can be used with @option{-shared}. Doing so means that a
-shared library is being created but that all of the library's external
-references must be resolved by pulling in entries from static
-libraries.
+option also implies @option{--unresolved-symbols=report-all}.
+@option{-Bstatic} and @option{-dn} can be used with @option{-shared}.
+Doing so means that a shared library is being created but that all of
+the library's external references must be resolved by pulling in entries
+from static libraries.
@kindex -Bsymbolic
@item -Bsymbolic
diff --git a/ld/ldlex.h b/ld/ldlex.h
index 99f4282..6f237dc 100644
--- a/ld/ldlex.h
+++ b/ld/ldlex.h
@@ -49,6 +49,7 @@ enum option_values
OPTION_NO_WARN_SEARCH_MISMATCH,
OPTION_NOINHIBIT_EXEC,
OPTION_NON_SHARED,
+ OPTION_STATIC,
OPTION_NO_WHOLE_ARCHIVE,
OPTION_OFORMAT,
OPTION_RELAX,
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 2f71750..a366613 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -269,9 +269,9 @@ static const struct ld_option ld_options[] =
'\0', NULL, N_("Do not link against shared libraries"), ONE_DASH },
{ {"dn", no_argument, NULL, OPTION_NON_SHARED},
'\0', NULL, NULL, ONE_DASH },
- { {"non_shared", no_argument, NULL, OPTION_NON_SHARED},
+ { {"non_shared", no_argument, NULL, OPTION_STATIC},
'\0', NULL, NULL, ONE_DASH },
- { {"static", no_argument, NULL, OPTION_NON_SHARED},
+ { {"static", no_argument, NULL, OPTION_STATIC},
'\0', NULL, NULL, ONE_DASH },
{ {"Bsymbolic", no_argument, NULL, OPTION_SYMBOLIC},
'\0', NULL, N_("Bind global references locally"), ONE_DASH },
@@ -523,6 +523,7 @@ parse_args (unsigned argc, char **argv)
struct option *really_longopts;
int last_optind;
enum report_method how_to_report_unresolved_symbols = RM_GENERATE_ERROR;
+ bfd_boolean seen_pie = FALSE, seen_shared = FALSE, seen_static = FALSE;
shortopts = (char *) xmalloc (OPTION_COUNT * 3 + 2);
longopts = (struct option *)
@@ -707,6 +708,8 @@ parse_args (unsigned argc, char **argv)
case OPTION_CALL_SHARED:
input_flags.dynamic = TRUE;
break;
+ case OPTION_STATIC:
+ seen_static = TRUE;
case OPTION_NON_SHARED:
input_flags.dynamic = FALSE;
break;
@@ -1087,6 +1090,7 @@ parse_args (unsigned argc, char **argv)
case OPTION_SHARED:
if (config.has_shared)
{
+ seen_shared = TRUE;
link_info.shared = TRUE;
/* When creating a shared library, the default
behaviour is to ignore any unresolved references. */
@@ -1101,6 +1105,7 @@ parse_args (unsigned argc, char **argv)
case OPTION_PIE:
if (config.has_shared)
{
+ seen_pie = TRUE;
link_info.shared = TRUE;
link_info.pie = TRUE;
}
@@ -1445,6 +1450,16 @@ parse_args (unsigned argc, char **argv)
}
}
+ if (seen_shared)
+ {
+ if (seen_pie)
+ einfo (_("%P%F: -shared and -pie are incompatible\n"));
+ if (seen_static)
+ einfo (_("%P%F: -shared and -static are incompatible\n"));
+ }
+ if (seen_pie && seen_static)
+ einfo (_("%P%F: -pie and -static are incompatible\n"));
+
while (ingroup)
{
lang_leave_group ();
diff --git a/ld/testsuite/ld-elf/pr16428a.d b/ld/testsuite/ld-elf/pr16428a.d
new file mode 100644
index 0000000..8f5e833
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16428a.d
@@ -0,0 +1,4 @@
+#source: start.s
+#ld: -shared -static
+#target: *-*-linux* *-*-gnu* *-*-nacl*
+#error: -shared and -static are incompatible
diff --git a/ld/testsuite/ld-elf/pr16428b.d b/ld/testsuite/ld-elf/pr16428b.d
new file mode 100644
index 0000000..f4ccba0
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16428b.d
@@ -0,0 +1,4 @@
+#source: start.s
+#ld: -shared -non_shared
+#target: *-*-linux* *-*-gnu* *-*-nacl*
+#error: -shared and -static are incompatible
diff --git a/ld/testsuite/ld-elf/pr16428c.d b/ld/testsuite/ld-elf/pr16428c.d
new file mode 100644
index 0000000..747e8da
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16428c.d
@@ -0,0 +1,4 @@
+#source: start.s
+#ld: -shared -pie
+#target: *-*-linux* *-*-gnu* *-*-nacl*
+#error: -shared and -pie are incompatible
diff --git a/ld/testsuite/ld-elf/pr16428d.d b/ld/testsuite/ld-elf/pr16428d.d
new file mode 100644
index 0000000..6e7a915
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr16428d.d
@@ -0,0 +1,4 @@
+#source: start.s
+#ld: -pie -static
+#target: *-*-linux* *-*-gnu* *-*-nacl*
+#error: -pie and -static are incompatible

11
debian/patches/pr32392-workaround.diff vendored Normal file
View File

@@ -0,0 +1,11 @@
--- a/gprofng/libcollector/Makefile.in
+++ b/gprofng/libcollector/Makefile.in
@@ -441,7 +441,7 @@ CSOURCES = \
collector.c \
$(NULL)
-AM_CFLAGS = $(GPROFNG_CFLAGS) $(GPROFNG_NO_NONNULL_COMPARE_CFLAGS)
+AM_CFLAGS = $(GPROFNG_CFLAGS) $(GPROFNG_NO_NONNULL_COMPARE_CFLAGS) -Wno-incompatible-pointer-types
AM_CPPFLAGS = $(GPROFNG_CPPFLAGS) -I.. -I$(srcdir) \
-I$(srcdir)/../common -I$(srcdir)/../src \
-I$(srcdir)/../../include

37
debian/patches/series vendored Normal file
View File

@@ -0,0 +1,37 @@
branch-updates.diff
branch-version.diff
001_ld_makefile_patch.patch
002_gprof_profile_arcs.patch
003_gprof_see_also_monitor.patch
006_better_file_error.patch
013_bash_in_ld_testsuite.patch
128_ppc64_powerpc_biarch.patch
129_multiarch_libpath.patch
131_ld_bootstrap_testsuite.patch
135_bfd_soversion.patch
136_bfd_pic.patch
157_ar_scripts_with_tilde.patch
#158_ld_system_root.patch
# only applied for GFDL builds
164_ld_doc_remove_xref.diff
gprof-build.diff
aarch64-libpath.diff
#pr-ld-16428.diff
# trunk backports
libctf-soname.diff
mips-hack.diff
perl-shebang.diff
env-package-metadata.diff
pr32392-workaround.diff
# https://sourceware.org/bugzilla/show_bug.cgi?id=30033
armhf-64k-alignment.diff
gprofng-examples-tgz-deterministic.diff
gprofng-cross-build.diff