Update to 2.37
This commit is contained in:
parent
01cb02daf9
commit
9ffbeab833
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ binutils-2.20.1.tar.bz2
|
||||
/binutils-2.32.tar.bz2
|
||||
/binutils-2.34.tar.bz2
|
||||
/binutils-2.36.1.tar.bz2
|
||||
/binutils-2.37.tar.xz
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/elfnn-aarch64.c binutils-2.36.1-new/bfd/elfnn-aarch64.c
|
||||
--- binutils-2.36.1/bfd/elfnn-aarch64.c 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/elfnn-aarch64.c 2021-07-24 14:35:28.431533991 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/elfnn-aarch64.c binutils-2.37-new/bfd/elfnn-aarch64.c
|
||||
--- binutils-2.37/bfd/elfnn-aarch64.c 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/elfnn-aarch64.c 2021-07-24 21:59:12.398868364 +0200
|
||||
@@ -5473,6 +5473,7 @@ elfNN_aarch64_final_link_relocate (reloc
|
||||
it here if it is defined in a non-shared object. */
|
||||
if (h != NULL
|
||||
|
||||
@ -1,158 +0,0 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/binutils/objcopy.c binutils-2.36.1-new/binutils/objcopy.c
|
||||
--- binutils-2.36.1/binutils/objcopy.c 2021-02-05 15:13:40.000000000 +0100
|
||||
+++ binutils-2.36.1-new/binutils/objcopy.c 2021-07-24 14:35:36.225531364 +0200
|
||||
@@ -3769,7 +3769,7 @@ copy_file (const char *input_filename, c
|
||||
/* To allow us to do "strip *" without dying on the first
|
||||
non-object file, failures are nonfatal. */
|
||||
ibfd = bfd_openr (input_filename, input_target);
|
||||
- if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0)
|
||||
+ if (ibfd == NULL || bfd_stat (ibfd, in_stat) != 0)
|
||||
{
|
||||
bfd_nonfatal_message (input_filename, NULL, NULL, NULL);
|
||||
status = 1;
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/i386.exp binutils-2.36.1-new/ld/testsuite/ld-i386/i386.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/i386.exp 2021-01-18 16:00:36.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/i386.exp 2021-07-24 14:35:36.225531364 +0200
|
||||
@@ -1105,69 +1105,6 @@ if { [isnative]
|
||||
{pass.c property-stack.S} \
|
||||
"property-3-static" "pass.out" \
|
||||
] \
|
||||
- [list \
|
||||
- "Run property 3" \
|
||||
- "" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S} \
|
||||
- "property-3" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 3 (PIE)" \
|
||||
- "-pie" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-1.S property-stack.S} \
|
||||
- "property-3-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 3 (static)" \
|
||||
- "-static" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-3-static" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4" \
|
||||
- "" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
||||
- "property-4" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4 (PIE)" \
|
||||
- "-pie" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
||||
- "property-4-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4 (static)" \
|
||||
- "-static" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-4-static" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5" \
|
||||
- "-Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
||||
- "property-5" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5 (PIE)" \
|
||||
- "-pie -Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
||||
- "property-5-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5 (static)" \
|
||||
- "-static -Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-5-static" "pass.out" \
|
||||
- ] \
|
||||
]
|
||||
|
||||
undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-01-11 13:43:47.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-24 14:35:36.225531364 +0200
|
||||
@@ -1583,69 +1583,6 @@ if { [isnative] && [check_compiler_avail
|
||||
"property-3-static" "pass.out" \
|
||||
] \
|
||||
[list \
|
||||
- "Run property 3" \
|
||||
- "" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S} \
|
||||
- "property-3" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 3 (PIE)" \
|
||||
- "-pie" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-1.S property-stack.S} \
|
||||
- "property-3-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 3 (static)" \
|
||||
- "-static" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-3-static" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4" \
|
||||
- "" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
||||
- "property-4" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4 (PIE)" \
|
||||
- "-pie" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
||||
- "property-4-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 4 (static)" \
|
||||
- "-static" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-4-static" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5" \
|
||||
- "-Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-stack.S property-x86-1.S property-x86-2.S} \
|
||||
- "property-5" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5 (PIE)" \
|
||||
- "-pie -Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {pass.c property-x86-2.S property-x86-1.S property-stack.S} \
|
||||
- "property-5-pie" "pass.out" "-fPIE" \
|
||||
- ] \
|
||||
- [list \
|
||||
- "Run property 5 (static)" \
|
||||
- "-static -Wl,-z,stack-size=0x900000" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- {property-x86-2.S property-x86-1.S pass.c property-stack.S} \
|
||||
- "property-5-static" "pass.out" \
|
||||
- ] \
|
||||
- [list \
|
||||
"Run pr22001-1a (PIC 1)" \
|
||||
"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \
|
||||
"-Wa,-mx86-used-note=yes" \
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/gold/fileread.cc binutils-2.36.1-new/gold/fileread.cc
|
||||
--- binutils-2.36.1/gold/fileread.cc 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/gold/fileread.cc 2021-07-24 14:35:33.385532303 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/gold/fileread.cc binutils-2.37-new/gold/fileread.cc
|
||||
--- binutils-2.37/gold/fileread.cc 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/fileread.cc 2021-07-24 21:59:22.937765719 +0200
|
||||
@@ -385,6 +385,12 @@ File_read::do_read(off_t start, section_
|
||||
ssize_t bytes;
|
||||
if (this->whole_file_view_ != NULL)
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/config/intdiv0.m4 binutils-2.36.1-new/config/intdiv0.m4
|
||||
--- binutils-2.36.1/config/intdiv0.m4 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/config/intdiv0.m4 2021-07-24 14:35:38.053530769 +0200
|
||||
@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
|
||||
exit (sig != SIGFPE);
|
||||
}
|
||||
|
||||
-int x = 1;
|
||||
-int y = 0;
|
||||
-int z;
|
||||
-int nan;
|
||||
+volatile int x = 1;
|
||||
+volatile int y = 0;
|
||||
+volatile int z;
|
||||
+volatile int nan;
|
||||
|
||||
int main ()
|
||||
{
|
||||
diff -rupN --no-dereference binutils-2.36.1/libiberty/aclocal.m4 binutils-2.36.1-new/libiberty/aclocal.m4
|
||||
--- binutils-2.36.1/libiberty/aclocal.m4 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/libiberty/aclocal.m4 2021-07-24 14:35:38.053530769 +0200
|
||||
@@ -149,7 +149,7 @@ if test $ac_cv_os_cray = yes; then
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
|
||||
-[AC_TRY_RUN([find_stack_direction ()
|
||||
+[AC_TRY_RUN([__attribute__ ((noclone,noinline)) find_stack_direction ()
|
||||
{
|
||||
static char *addr = 0;
|
||||
auto char dummy;
|
||||
diff -rupN --no-dereference binutils-2.36.1/libiberty/configure.ac binutils-2.36.1-new/libiberty/configure.ac
|
||||
--- binutils-2.36.1/libiberty/configure.ac 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/libiberty/configure.ac 2021-07-24 14:35:38.054530769 +0200
|
||||
@@ -665,7 +665,7 @@ if test -z "${setobjs}"; then
|
||||
for v in $vars; do
|
||||
AC_MSG_CHECKING([for $v])
|
||||
AC_CACHE_VAL(libiberty_cv_var_$v,
|
||||
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])],
|
||||
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[__attribute__ ((used)) int *p;]],[[extern int $v []; p = $v;]])],
|
||||
[eval "libiberty_cv_var_$v=yes"],
|
||||
[eval "libiberty_cv_var_$v=no"])])
|
||||
if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
|
||||
@ -1,7 +1,7 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/configure binutils-2.36.1-new/configure
|
||||
--- binutils-2.36.1/configure 2021-01-24 11:41:35.000000000 +0100
|
||||
+++ binutils-2.36.1-new/configure 2021-07-24 14:35:29.359533670 +0200
|
||||
@@ -5075,49 +5075,6 @@ if test -z "$LD"; then
|
||||
diff -rupN --no-dereference binutils-2.37/configure binutils-2.37-new/configure
|
||||
--- binutils-2.37/configure 2021-07-18 18:36:27.000000000 +0200
|
||||
+++ binutils-2.37-new/configure 2021-07-24 21:59:14.582847093 +0200
|
||||
@@ -5257,49 +5257,6 @@ if test -z "$LD"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -51,10 +51,10 @@ diff -rupN --no-dereference binutils-2.36.1/configure binutils-2.36.1-new/config
|
||||
|
||||
|
||||
if test -n "$ac_tool_prefix"; then
|
||||
diff -rupN --no-dereference binutils-2.36.1/configure.ac binutils-2.36.1-new/configure.ac
|
||||
--- binutils-2.36.1/configure.ac 2021-02-06 10:25:05.000000000 +0100
|
||||
+++ binutils-2.36.1-new/configure.ac 2021-07-24 14:35:29.360533670 +0200
|
||||
@@ -1302,26 +1302,6 @@ if test -z "$LD"; then
|
||||
diff -rupN --no-dereference binutils-2.37/configure.ac binutils-2.37-new/configure.ac
|
||||
--- binutils-2.37/configure.ac 2021-07-18 18:48:58.000000000 +0200
|
||||
+++ binutils-2.37-new/configure.ac 2021-07-24 21:59:14.583847083 +0200
|
||||
@@ -1300,26 +1300,6 @@ if test -z "$LD"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@ -1,22 +1,22 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.am binutils-2.36.1-new/bfd/Makefile.am
|
||||
--- binutils-2.36.1/bfd/Makefile.am 2021-07-24 14:35:23.756535639 +0200
|
||||
+++ binutils-2.36.1-new/bfd/Makefile.am 2021-07-24 14:35:23.760535638 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/Makefile.am binutils-2.37-new/bfd/Makefile.am
|
||||
--- binutils-2.37/bfd/Makefile.am 2021-07-24 21:59:01.980969825 +0200
|
||||
+++ binutils-2.37-new/bfd/Makefile.am 2021-07-24 21:59:01.986969767 +0200
|
||||
@@ -33,7 +33,7 @@ bfdlibdir = @bfdlibdir@
|
||||
bfdincludedir = @bfdincludedir@
|
||||
bfdlib_LTLIBRARIES = libbfd.la
|
||||
bfdinclude_HEADERS = $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
|
||||
- bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
|
||||
+ bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h $(INCDIR)/demangle.h
|
||||
- $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
|
||||
+ $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h $(INCDIR)/demangle.h
|
||||
else !INSTALL_LIBBFD
|
||||
# Empty these so that the respective installation directories will not be created.
|
||||
bfdlibdir =
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.in binutils-2.36.1-new/bfd/Makefile.in
|
||||
--- binutils-2.36.1/bfd/Makefile.in 2021-07-24 14:35:23.757535639 +0200
|
||||
+++ binutils-2.36.1-new/bfd/Makefile.in 2021-07-24 14:35:23.760535638 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/Makefile.in binutils-2.37-new/bfd/Makefile.in
|
||||
--- binutils-2.37/bfd/Makefile.in 2021-07-24 21:59:01.980969825 +0200
|
||||
+++ binutils-2.37-new/bfd/Makefile.in 2021-07-24 21:59:01.987969757 +0200
|
||||
@@ -249,7 +249,7 @@ am__can_run_installinfo = \
|
||||
esac
|
||||
am__bfdinclude_HEADERS_DIST = $(INCDIR)/plugin-api.h bfd.h \
|
||||
$(INCDIR)/ansidecl.h $(INCDIR)/symcat.h bfd_stdint.h \
|
||||
$(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
|
||||
- $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h
|
||||
+ $(INCDIR)/diagnostics.h $(INCDIR)/bfdlink.h $(INCDIR)/demangle.h
|
||||
HEADERS = $(bfdinclude_HEADERS)
|
||||
@ -26,8 +26,8 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.in binutils-2.36.1-new/
|
||||
@INSTALL_LIBBFD_FALSE@bfdinclude_HEADERS = $(am__append_2)
|
||||
@INSTALL_LIBBFD_TRUE@bfdinclude_HEADERS = $(BFD_H) \
|
||||
@INSTALL_LIBBFD_TRUE@ $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
|
||||
-@INSTALL_LIBBFD_TRUE@ bfd_stdint.h $(INCDIR)/diagnostics.h \
|
||||
+@INSTALL_LIBBFD_TRUE@ bfd_stdint.h $(INCDIR)/diagnostics.h $(INCDIR)/demangle.h \
|
||||
-@INSTALL_LIBBFD_TRUE@ $(INCDIR)/diagnostics.h \
|
||||
+@INSTALL_LIBBFD_TRUE@ $(INCDIR)/diagnostics.h $(INCDIR)/demangle.h \
|
||||
@INSTALL_LIBBFD_TRUE@ $(INCDIR)/bfdlink.h $(am__append_2)
|
||||
@INSTALL_LIBBFD_FALSE@rpath_bfdlibdir = @bfdlibdir@
|
||||
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-new/binutils/readelf.c
|
||||
--- binutils-2.36.1/binutils/readelf.c 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/binutils/readelf.c 2021-07-24 14:35:25.639534969 +0200
|
||||
@@ -21386,79 +21386,92 @@ process_file (char * file_name)
|
||||
Filedata * filedata = NULL;
|
||||
diff -rupN --no-dereference binutils-2.37/binutils/readelf.c binutils-2.37-new/binutils/readelf.c
|
||||
--- binutils-2.37/binutils/readelf.c 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/binutils/readelf.c 2021-07-24 21:59:05.781932809 +0200
|
||||
@@ -21873,45 +21873,52 @@ process_file (char * file_name)
|
||||
struct stat statbuf;
|
||||
char armag[SARMAG];
|
||||
- bfd_boolean ret = TRUE;
|
||||
+ bfd_boolean ret = FALSE;
|
||||
bool ret = true;
|
||||
+ char * name;
|
||||
+ char * saved_program_name;
|
||||
+
|
||||
@ -26,7 +24,7 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
else
|
||||
- error (_("Could not locate '%s'. System error message: %s\n"),
|
||||
- file_name, strerror (errno));
|
||||
- return FALSE;
|
||||
- return false;
|
||||
+ error (_("Could not locate file. System error message: %s\n"),
|
||||
+ strerror (errno));
|
||||
+ goto done;
|
||||
@ -35,7 +33,7 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
if (! S_ISREG (statbuf.st_mode))
|
||||
{
|
||||
- error (_("'%s' is not an ordinary file\n"), file_name);
|
||||
- return FALSE;
|
||||
- return false;
|
||||
+ error (_("Not an ordinary file\n"));
|
||||
+ goto done;
|
||||
}
|
||||
@ -44,7 +42,7 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
if (filedata == NULL)
|
||||
{
|
||||
error (_("Out of memory allocating file data structure\n"));
|
||||
- return FALSE;
|
||||
- return false;
|
||||
+ goto done;
|
||||
}
|
||||
|
||||
@ -54,7 +52,7 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
{
|
||||
- error (_("Input file '%s' is not readable.\n"), file_name);
|
||||
- free (filedata);
|
||||
- return FALSE;
|
||||
- return false;
|
||||
+ error (_("Not readable\n"));
|
||||
+ goto done;
|
||||
}
|
||||
@ -64,26 +62,27 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
- error (_("%s: Failed to read file's magic number\n"), file_name);
|
||||
- fclose (filedata->handle);
|
||||
- free (filedata);
|
||||
- return FALSE;
|
||||
- return false;
|
||||
+ error (_("Failed to read file's magic number\n"));
|
||||
+ goto done;
|
||||
}
|
||||
|
||||
filedata->file_size = (bfd_size_type) statbuf.st_size;
|
||||
@@ -21919,33 +21926,39 @@ process_file (char * file_name)
|
||||
|
||||
if (memcmp (armag, ARMAG, SARMAG) == 0)
|
||||
{
|
||||
- if (! process_archive (filedata, FALSE))
|
||||
- ret = FALSE;
|
||||
+ if (process_archive (filedata, FALSE))
|
||||
+ ret = TRUE;
|
||||
- if (! process_archive (filedata, false))
|
||||
- ret = false;
|
||||
+ if (process_archive (filedata, false))
|
||||
+ ret = true;
|
||||
}
|
||||
else if (memcmp (armag, ARMAGT, SARMAG) == 0)
|
||||
{
|
||||
- if ( ! process_archive (filedata, TRUE))
|
||||
- ret = FALSE;
|
||||
+ if (process_archive (filedata, TRUE))
|
||||
+ ret = TRUE;
|
||||
- if ( ! process_archive (filedata, true))
|
||||
- ret = false;
|
||||
+ if (process_archive (filedata, true))
|
||||
+ ret = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -96,9 +95,9 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
filedata->archive_file_size = filedata->archive_file_offset = 0;
|
||||
|
||||
- if (! process_object (filedata))
|
||||
- ret = FALSE;
|
||||
- ret = false;
|
||||
+ if (process_object (filedata))
|
||||
+ ret = TRUE;
|
||||
+ ret = true;
|
||||
}
|
||||
|
||||
- fclose (filedata->handle);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-elfvers/vers24.rd binutils-2.36.1-new/ld/testsuite/ld-elfvers/vers24.rd
|
||||
--- binutils-2.36.1/ld/testsuite/ld-elfvers/vers24.rd 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-elfvers/vers24.rd 2021-07-24 14:35:31.400532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elfvers/vers24.rd binutils-2.37-new/ld/testsuite/ld-elfvers/vers24.rd
|
||||
--- binutils-2.37/ld/testsuite/ld-elfvers/vers24.rd 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elfvers/vers24.rd 2021-07-24 21:59:18.647807502 +0200
|
||||
@@ -7,9 +7,9 @@ Symbol table '.dynsym' contains [0-9]+ e
|
||||
# And ensure the dynamic symbol table contains at least x@VERS.0
|
||||
# and foo@@VERS.0 symbols
|
||||
@ -13,9 +13,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-elfvers/vers24.rd bi
|
||||
#...
|
||||
Symbol table '.symtab' contains [0-9]+ entries:
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-10.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 14:35:31.400532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 21:59:18.648807492 +0200
|
||||
@@ -32,7 +32,8 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
||||
#...
|
||||
@ -26,9 +26,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-11.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 14:35:31.400532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 21:59:18.648807492 +0200
|
||||
@@ -35,8 +35,9 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
||||
#...
|
||||
@ -41,18 +41,18 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-13.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-13.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-13.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-13.d 2021-07-24 14:35:31.400532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-13.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-13.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-13.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-13.d 2021-07-24 21:59:18.648807492 +0200
|
||||
@@ -23,5 +23,3 @@ hook called: claim_file tmpdir/main.o \[
|
||||
hook called: claim_file .*/ld/testsuite/ld-plugin/func.c \[@0/.* CLAIMED
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
-.*main.c.*: undefined reference to `\.?func'
|
||||
-#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-14.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-14.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-14.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-14.d 2021-07-24 14:35:31.400532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-14.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-14.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-14.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-14.d 2021-07-24 21:59:18.649807482 +0200
|
||||
@@ -27,7 +27,6 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -62,9 +62,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-14.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-15.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-15.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-15.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-15.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-15.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-15.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-15.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-15.d 2021-07-24 21:59:18.649807482 +0200
|
||||
@@ -28,7 +28,6 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -74,9 +74,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-15.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-16.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 21:59:18.649807482 +0200
|
||||
@@ -30,9 +30,8 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -89,9 +89,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-17.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 21:59:18.649807482 +0200
|
||||
@@ -31,7 +31,8 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -102,9 +102,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-18.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 21:59:18.650807473 +0200
|
||||
@@ -32,7 +32,8 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
||||
#...
|
||||
@ -115,9 +115,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-19.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 21:59:18.650807473 +0200
|
||||
@@ -35,8 +35,9 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
||||
#...
|
||||
@ -130,9 +130,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d b
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-20.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-20.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-20.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-20.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-20.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-20.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-20.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-20.d 2021-07-24 21:59:18.650807473 +0200
|
||||
@@ -2,6 +2,5 @@ hook called: all symbols read.
|
||||
Input: func.c \(tmpdir/libfunc.a\)
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
@ -141,9 +141,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-20.d b
|
||||
-.*main.c.*: undefined reference to `\.?func'
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-21.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-21.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-21.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-21.d 2021-07-24 14:35:31.401532972 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-21.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-21.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-21.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-21.d 2021-07-24 21:59:18.650807473 +0200
|
||||
@@ -2,6 +2,5 @@ hook called: all symbols read.
|
||||
Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\)
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
@ -152,9 +152,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-21.d b
|
||||
-.*main.c.*: undefined reference to `\.?func'
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-22.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-22.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-22.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-22.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-22.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-22.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-22.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-22.d 2021-07-24 21:59:18.650807473 +0200
|
||||
@@ -2,6 +2,5 @@ Claimed: tmpdir/libfunc.a \[@.*
|
||||
hook called: all symbols read.
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
@ -163,9 +163,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-22.d b
|
||||
-.*main.c.*: undefined reference to `\.?func'
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-23.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-23.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-23.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-23.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-23.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-23.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-23.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-23.d 2021-07-24 21:59:18.651807463 +0200
|
||||
@@ -2,6 +2,5 @@ Claimed: .*/ld/testsuite/ld-plugin/func.
|
||||
hook called: all symbols read.
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
@ -174,47 +174,47 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-23.d b
|
||||
-.*main.c.*: undefined reference to `\.?func'
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-24.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-24.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-24.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-24.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-24.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-24.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-24.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-24.d 2021-07-24 21:59:18.651807463 +0200
|
||||
@@ -2,4 +2,5 @@ hook called: all symbols read.
|
||||
Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\)
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-25.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-25.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-25.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-25.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-25.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-25.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-25.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-25.d 2021-07-24 21:59:18.651807463 +0200
|
||||
@@ -2,4 +2,5 @@ Claimed: .*/ld/testsuite/ld-plugin/func.
|
||||
hook called: all symbols read.
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-28.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-28.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-28.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-28.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-28.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-28.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-28.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-28.d 2021-07-24 21:59:18.651807463 +0200
|
||||
@@ -1 +1,2 @@
|
||||
.*: error: Error
|
||||
+#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-29.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-29.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-29.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-29.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-29.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-29.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-29.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-29.d 2021-07-24 21:59:18.652807453 +0200
|
||||
@@ -1 +1,2 @@
|
||||
.*: warning: Warning
|
||||
+#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-30.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-30.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-30.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-30.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-30.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-30.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-30.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-30.d 2021-07-24 21:59:18.652807453 +0200
|
||||
@@ -24,3 +24,4 @@ hook called: claim_file tmpdir/main.o \[
|
||||
hook called: claim_file tmpdir/func.o \[@0/.* not claimed
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
hook called: claim_file tmpdir/libempty.a \[@.* not claimed
|
||||
+#pass
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-6.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-6.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-6.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-6.d 2021-07-24 14:35:31.402532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-6.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-6.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-6.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-6.d 2021-07-24 21:59:18.652807453 +0200
|
||||
@@ -27,7 +27,6 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -224,9 +224,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-6.d bi
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-7.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-7.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-7.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-7.d 2021-07-24 14:35:31.403532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-7.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-7.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-7.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-7.d 2021-07-24 21:59:18.652807453 +0200
|
||||
@@ -28,7 +28,6 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -236,9 +236,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-7.d bi
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-8.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 14:35:31.403532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 21:59:18.653807444 +0200
|
||||
@@ -30,9 +30,8 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -251,9 +251,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d bi
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-9.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 14:35:31.403532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 21:59:18.653807444 +0200
|
||||
@@ -31,7 +31,8 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -264,10 +264,10 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d bi
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin.exp binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin.exp 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 14:35:31.403532971 +0200
|
||||
@@ -119,6 +119,12 @@ if { $can_compile && !$failed_compile }
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin.exp binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 21:59:18.653807444 +0200
|
||||
@@ -117,6 +117,12 @@ if { $can_compile && !$failed_compile }
|
||||
}
|
||||
}
|
||||
|
||||
@ -280,9 +280,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin.exp bi
|
||||
set testobjfiles "tmpdir/main.o tmpdir/func.o tmpdir/text.o"
|
||||
set testobjfiles_notext "tmpdir/main.o tmpdir/func.o"
|
||||
set testsrcfiles "tmpdir/main.o $srcdir/$subdir/func.c tmpdir/text.o"
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/pr20070.d binutils-2.36.1-new/ld/testsuite/ld-plugin/pr20070.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/pr20070.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/pr20070.d 2021-07-24 14:35:31.403532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/pr20070.d binutils-2.37-new/ld/testsuite/ld-plugin/pr20070.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/pr20070.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/pr20070.d 2021-07-24 21:59:18.653807444 +0200
|
||||
@@ -5,5 +5,6 @@ Sym: 'weakdef' Resolution: LDPR_PREVAILI
|
||||
Sym: 'undef' Resolution: LDPR_UNDEF
|
||||
Sym: 'weakundef' Resolution: LDPR_UNDEF
|
||||
@ -290,9 +290,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/pr20070.d bin
|
||||
+#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-srec/srec.exp binutils-2.36.1-new/ld/testsuite/ld-srec/srec.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-srec/srec.exp 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-srec/srec.exp 2021-07-24 14:35:31.403532971 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-srec/srec.exp binutils-2.37-new/ld/testsuite/ld-srec/srec.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-srec/srec.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-srec/srec.exp 2021-07-24 21:59:18.654807434 +0200
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
# Get the offset from an S-record line to the start of the data.
|
||||
|
||||
@ -1,114 +0,0 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/cofflink.c binutils-2.36.1-new/bfd/cofflink.c
|
||||
--- binutils-2.36.1/bfd/cofflink.c 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/cofflink.c 2021-07-24 14:35:39.018530459 +0200
|
||||
@@ -3118,6 +3118,21 @@ _bfd_coff_generic_relocate_section (bfd
|
||||
return FALSE;
|
||||
case bfd_reloc_overflow:
|
||||
{
|
||||
+
|
||||
+ /* Ignore any weak undef symbols that may have overflowed. Due to
|
||||
+ PR ld/19011 the base address is now in the upper 64-bit address
|
||||
+ range. This means that when _bfd_final_link_relocate calculates
|
||||
+ the overlow it takes the distance between the symbol and the VMA
|
||||
+ which will now always overflow as 0 - 64-bit addr > 32-bit range
|
||||
+ of the relocation. This ends up creating PR ld/26659. */
|
||||
+ if (val == 0
|
||||
+ /* Reverse the hack where 4 is subtracted from the addend. */
|
||||
+ && (addend + 4) == 0
|
||||
+ && sym->n_sclass == C_NT_WEAK
|
||||
+ && bfd_coff_classify_symbol (output_bfd, sym)
|
||||
+ == COFF_SYMBOL_UNDEFINED)
|
||||
+ break;
|
||||
+
|
||||
const char *name;
|
||||
char buf[SYMNMLEN + 1];
|
||||
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-pe/pe.exp binutils-2.36.1-new/ld/testsuite/ld-pe/pe.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-pe/pe.exp 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-pe/pe.exp 2021-07-24 14:35:39.019530458 +0200
|
||||
@@ -79,6 +79,7 @@ run_dump_test "orphan_nu"
|
||||
run_dump_test "weakdef-1"
|
||||
|
||||
run_dump_test "pr19803"
|
||||
+run_dump_test "pr26659-weak-undef-sym"
|
||||
set pr19803_dll {
|
||||
{ "PR 19803: not exporting swept symbols"
|
||||
"-shared --out-implib dx.dll --gc-sections"
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d binutils-2.36.1-new/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-pe/pr26659-weak-undef-sym.d 2021-07-24 14:35:39.019530458 +0200
|
||||
@@ -0,0 +1,32 @@
|
||||
+#source: pr26659-weak-undef-sym.s
|
||||
+#target: x86_64-*-cygwin* x86_64-*-pe x86_64-*-mingw*
|
||||
+#ld: -e0
|
||||
+#objdump: -d
|
||||
+
|
||||
+#...
|
||||
+0000000140001000 <foo>:
|
||||
+ 140001000: 55 push %rbp
|
||||
+ 140001001: 48 89 e5 mov %rsp,%rbp
|
||||
+ 140001004: 48 83 ec 20 sub \$0x20,%rsp
|
||||
+ 140001008: 89 4d 10 mov %ecx,0x10\(%rbp\)
|
||||
+ 14000100b: 48 8b 05 ee 0f 00 00 mov 0xfee\(%rip\),%rax # 140002000 <__data_end__>
|
||||
+ 140001012: 48 85 c0 test %rax,%rax
|
||||
+ 140001015: 74 05 je 14000101c <foo\+0x1c>
|
||||
+ 140001017: e8 e4 ef ff bf call 100000000 <__size_of_stack_reserve__\+0xffe00000>
|
||||
+ 14000101c: 48 8b 05 ed 0f 00 00 mov 0xfed\(%rip\),%rax # 140002010 <.refptr.bar2>
|
||||
+ 140001023: 48 85 c0 test %rax,%rax
|
||||
+ 140001026: 74 05 je 14000102d <foo\+0x2d>
|
||||
+ 140001028: e8 d3 ef ff bf call 100000000 <__size_of_stack_reserve__\+0xffe00000>
|
||||
+ 14000102d: 8b 45 10 mov 0x10\(%rbp\),%eax
|
||||
+ 140001030: 0f af c0 imul %eax,%eax
|
||||
+ 140001033: 48 83 c4 20 add \$0x20,%rsp
|
||||
+ 140001037: 5d pop %rbp
|
||||
+ 140001038: c3 ret
|
||||
+ 140001039: 90 nop
|
||||
+ 14000103a: 90 nop
|
||||
+ 14000103b: 90 nop
|
||||
+ 14000103c: 90 nop
|
||||
+ 14000103d: 90 nop
|
||||
+ 14000103e: 90 nop
|
||||
+ 14000103f: 90 nop
|
||||
+#pass
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-pe/pr26659-weak-undef-sym.s binutils-2.36.1-new/ld/testsuite/ld-pe/pr26659-weak-undef-sym.s
|
||||
--- binutils-2.36.1/ld/testsuite/ld-pe/pr26659-weak-undef-sym.s 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-pe/pr26659-weak-undef-sym.s 2021-07-24 14:35:39.019530458 +0200
|
||||
@@ -0,0 +1,38 @@
|
||||
+ .text
|
||||
+ .globl foo
|
||||
+ .def foo; .scl 2; .type 32; .endef
|
||||
+foo:
|
||||
+ pushq %rbp
|
||||
+ movq %rsp, %rbp
|
||||
+ subq $32, %rsp
|
||||
+ movl %ecx, 16(%rbp)
|
||||
+ movq .refptr.bar1(%rip), %rax
|
||||
+ testq %rax, %rax
|
||||
+ je .L2
|
||||
+ call bar1
|
||||
+.L2:
|
||||
+ movq .refptr.bar2(%rip), %rax
|
||||
+ testq %rax, %rax
|
||||
+ je .L3
|
||||
+ call bar2
|
||||
+.L3:
|
||||
+ movl 16(%rbp), %eax
|
||||
+ imull %eax, %eax
|
||||
+ addq $32, %rsp
|
||||
+ popq %rbp
|
||||
+ ret
|
||||
+ .weak bar2
|
||||
+ .weak bar1
|
||||
+ .def bar1; .scl 2; .type 32; .endef
|
||||
+ .def bar2; .scl 2; .type 32; .endef
|
||||
+ .section .rdata$.refptr.bar2, "dr"
|
||||
+ .globl .refptr.bar2
|
||||
+ .linkonce discard
|
||||
+.refptr.bar2:
|
||||
+ .quad bar2
|
||||
+ .section .rdata$.refptr.bar1, "dr"
|
||||
+ .globl .refptr.bar1
|
||||
+ .linkonce discard
|
||||
+.refptr.bar1:
|
||||
+ .quad bar1
|
||||
+
|
||||
192
binutils-gold-i386-gnu-property-notes.patch
Normal file
192
binutils-gold-i386-gnu-property-notes.patch
Normal file
@ -0,0 +1,192 @@
|
||||
diff -rupN --no-dereference binutils-2.37/gold/i386.cc binutils-2.37-new/gold/i386.cc
|
||||
--- binutils-2.37/gold/i386.cc 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/i386.cc 2021-07-24 21:59:31.051686692 +0200
|
||||
@@ -360,7 +360,11 @@ class Target_i386 : public Sized_target<
|
||||
got_(NULL), plt_(NULL), got_plt_(NULL), got_irelative_(NULL),
|
||||
got_tlsdesc_(NULL), global_offset_table_(NULL), rel_dyn_(NULL),
|
||||
rel_irelative_(NULL), copy_relocs_(elfcpp::R_386_COPY),
|
||||
- got_mod_index_offset_(-1U), tls_base_symbol_defined_(false)
|
||||
+ got_mod_index_offset_(-1U), tls_base_symbol_defined_(false),
|
||||
+ isa_1_used_(0), isa_1_needed_(0),
|
||||
+ feature_1_(0), feature_2_used_(0), feature_2_needed_(0),
|
||||
+ object_isa_1_used_(0), object_feature_1_(0),
|
||||
+ object_feature_2_used_(0), seen_first_object_(false)
|
||||
{ }
|
||||
|
||||
// Process the relocations to determine unreferenced sections for
|
||||
@@ -859,6 +863,21 @@ class Target_i386 : public Sized_target<
|
||||
this->rel_dyn_section(layout));
|
||||
}
|
||||
|
||||
+ // Record a target-specific program property in the .note.gnu.property
|
||||
+ // section.
|
||||
+ void
|
||||
+ record_gnu_property(unsigned int, unsigned int, size_t,
|
||||
+ const unsigned char*, const Object*);
|
||||
+
|
||||
+ // Merge the target-specific program properties from the current object.
|
||||
+ void
|
||||
+ merge_gnu_properties(const Object*);
|
||||
+
|
||||
+ // Finalize the target-specific program properties and add them back to
|
||||
+ // the layout.
|
||||
+ void
|
||||
+ do_finalize_gnu_properties(Layout*) const;
|
||||
+
|
||||
// Information about this specific target which we pass to the
|
||||
// general Target structure.
|
||||
static const Target::Target_info i386_info;
|
||||
@@ -898,6 +917,26 @@ class Target_i386 : public Sized_target<
|
||||
unsigned int got_mod_index_offset_;
|
||||
// True if the _TLS_MODULE_BASE_ symbol has been defined.
|
||||
bool tls_base_symbol_defined_;
|
||||
+
|
||||
+ // Target-specific program properties, from .note.gnu.property section.
|
||||
+ // Each bit represents a specific feature.
|
||||
+ uint32_t isa_1_used_;
|
||||
+ uint32_t isa_1_needed_;
|
||||
+ uint32_t feature_1_;
|
||||
+ uint32_t feature_2_used_;
|
||||
+ uint32_t feature_2_needed_;
|
||||
+ // Target-specific properties from the current object.
|
||||
+ // These bits get ORed into ISA_1_USED_ after all properties for the object
|
||||
+ // have been processed. But if either is all zeroes (as when the property
|
||||
+ // is absent from an object), the result should be all zeroes.
|
||||
+ // (See PR ld/23486.)
|
||||
+ uint32_t object_isa_1_used_;
|
||||
+ // These bits get ANDed into FEATURE_1_ after all properties for the object
|
||||
+ // have been processed.
|
||||
+ uint32_t object_feature_1_;
|
||||
+ uint32_t object_feature_2_used_;
|
||||
+ // Whether we have seen our first object, for use in initializing FEATURE_1_.
|
||||
+ bool seen_first_object_;
|
||||
};
|
||||
|
||||
const Target::Target_info Target_i386::i386_info =
|
||||
@@ -1042,6 +1081,126 @@ Target_i386::rel_irelative_section(Layou
|
||||
return this->rel_irelative_;
|
||||
}
|
||||
|
||||
+// Record a target-specific program property from the .note.gnu.property
|
||||
+// section.
|
||||
+void
|
||||
+Target_i386::record_gnu_property(
|
||||
+ unsigned int, unsigned int pr_type,
|
||||
+ size_t pr_datasz, const unsigned char* pr_data,
|
||||
+ const Object* object)
|
||||
+{
|
||||
+ uint32_t val = 0;
|
||||
+
|
||||
+ switch (pr_type)
|
||||
+ {
|
||||
+ case elfcpp::GNU_PROPERTY_X86_COMPAT_ISA_1_USED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_2_USED:
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_2_NEEDED:
|
||||
+ if (pr_datasz != 4)
|
||||
+ {
|
||||
+ gold_warning(_("%s: corrupt .note.gnu.property section "
|
||||
+ "(pr_datasz for property %d is not 4)"),
|
||||
+ object->name().c_str(), pr_type);
|
||||
+ return;
|
||||
+ }
|
||||
+ val = elfcpp::Swap<32, false>::readval(pr_data);
|
||||
+ break;
|
||||
+ default:
|
||||
+ gold_warning(_("%s: unknown program property type 0x%x "
|
||||
+ "in .note.gnu.property section"),
|
||||
+ object->name().c_str(), pr_type);
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ switch (pr_type)
|
||||
+ {
|
||||
+ case elfcpp::GNU_PROPERTY_X86_ISA_1_USED:
|
||||
+ this->object_isa_1_used_ |= val;
|
||||
+ break;
|
||||
+ case elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED:
|
||||
+ this->isa_1_needed_ |= val;
|
||||
+ break;
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND:
|
||||
+ // If we see multiple feature props in one object, OR them together.
|
||||
+ this->object_feature_1_ |= val;
|
||||
+ break;
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_2_USED:
|
||||
+ this->object_feature_2_used_ |= val;
|
||||
+ break;
|
||||
+ case elfcpp::GNU_PROPERTY_X86_FEATURE_2_NEEDED:
|
||||
+ this->feature_2_needed_ |= val;
|
||||
+ break;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+// Merge the target-specific program properties from the current object.
|
||||
+void
|
||||
+Target_i386::merge_gnu_properties(const Object*)
|
||||
+{
|
||||
+ if (this->seen_first_object_)
|
||||
+ {
|
||||
+ // If any object is missing the ISA_1_USED property, we must omit
|
||||
+ // it from the output file.
|
||||
+ if (this->object_isa_1_used_ == 0)
|
||||
+ this->isa_1_used_ = 0;
|
||||
+ else if (this->isa_1_used_ != 0)
|
||||
+ this->isa_1_used_ |= this->object_isa_1_used_;
|
||||
+ this->feature_1_ &= this->object_feature_1_;
|
||||
+ // If any object is missing the FEATURE_2_USED property, we must
|
||||
+ // omit it from the output file.
|
||||
+ if (this->object_feature_2_used_ == 0)
|
||||
+ this->feature_2_used_ = 0;
|
||||
+ else if (this->feature_2_used_ != 0)
|
||||
+ this->feature_2_used_ |= this->object_feature_2_used_;
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ this->isa_1_used_ = this->object_isa_1_used_;
|
||||
+ this->feature_1_ = this->object_feature_1_;
|
||||
+ this->feature_2_used_ = this->object_feature_2_used_;
|
||||
+ this->seen_first_object_ = true;
|
||||
+ }
|
||||
+ this->object_isa_1_used_ = 0;
|
||||
+ this->object_feature_1_ = 0;
|
||||
+ this->object_feature_2_used_ = 0;
|
||||
+}
|
||||
+
|
||||
+static inline void
|
||||
+add_property(Layout* layout, unsigned int pr_type, uint32_t val)
|
||||
+{
|
||||
+ unsigned char buf[4];
|
||||
+ elfcpp::Swap<32, false>::writeval(buf, val);
|
||||
+ layout->add_gnu_property(elfcpp::NT_GNU_PROPERTY_TYPE_0, pr_type, 4, buf);
|
||||
+}
|
||||
+
|
||||
+// Finalize the target-specific program properties and add them back to
|
||||
+// the layout.
|
||||
+void
|
||||
+Target_i386::do_finalize_gnu_properties(Layout* layout) const
|
||||
+{
|
||||
+ if (this->isa_1_used_ != 0)
|
||||
+ add_property(layout, elfcpp::GNU_PROPERTY_X86_ISA_1_USED,
|
||||
+ this->isa_1_used_);
|
||||
+ if (this->isa_1_needed_ != 0)
|
||||
+ add_property(layout, elfcpp::GNU_PROPERTY_X86_ISA_1_NEEDED,
|
||||
+ this->isa_1_needed_);
|
||||
+ if (this->feature_1_ != 0)
|
||||
+ add_property(layout, elfcpp::GNU_PROPERTY_X86_FEATURE_1_AND,
|
||||
+ this->feature_1_);
|
||||
+ if (this->feature_2_used_ != 0)
|
||||
+ add_property(layout, elfcpp::GNU_PROPERTY_X86_FEATURE_2_USED,
|
||||
+ this->feature_2_used_);
|
||||
+ if (this->feature_2_needed_ != 0)
|
||||
+ add_property(layout, elfcpp::GNU_PROPERTY_X86_FEATURE_2_NEEDED,
|
||||
+ this->feature_2_needed_);
|
||||
+}
|
||||
+
|
||||
// Write the first three reserved words of the .got.plt section.
|
||||
// The remainder of the section is written while writing the PLT
|
||||
// in Output_data_plt_i386::do_write.
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/gold/layout.cc binutils-2.36.1-new/gold/layout.cc
|
||||
--- binutils-2.36.1/gold/layout.cc 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/gold/layout.cc 2021-07-24 14:35:32.411532630 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/gold/layout.cc binutils-2.37-new/gold/layout.cc
|
||||
--- binutils-2.37/gold/layout.cc 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/layout.cc 2021-07-24 21:59:20.710787409 +0200
|
||||
@@ -869,6 +869,7 @@ Layout::get_output_section(const char* n
|
||||
&& (same_name->flags() & elfcpp::SHF_TLS) == 0)
|
||||
os = same_name;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/config.bfd binutils-2.36.1-new/bfd/config.bfd
|
||||
--- binutils-2.36.1/bfd/config.bfd 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/config.bfd 2021-07-24 14:35:34.383531971 +0200
|
||||
@@ -470,7 +470,7 @@ case "${targ}" in
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/config.bfd binutils-2.37-new/bfd/config.bfd
|
||||
--- binutils-2.37/bfd/config.bfd 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/config.bfd 2021-07-24 21:59:24.914746464 +0200
|
||||
@@ -465,7 +465,7 @@ case "${targ}" in
|
||||
;;
|
||||
|
||||
#ifdef BFD64
|
||||
@ -10,7 +10,7 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/config.bfd binutils-2.36.1-new/b
|
||||
targ_defvec=bpf_elf64_le_vec
|
||||
targ_selvecs=bpf_elf64_be_vec
|
||||
targ_underscore=yes
|
||||
@@ -1425,7 +1425,7 @@ case "${targ}" in
|
||||
@@ -1421,7 +1421,7 @@ case "${targ}" in
|
||||
;;
|
||||
|
||||
*)
|
||||
@ -19,9 +19,9 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/config.bfd binutils-2.36.1-new/b
|
||||
echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
|
||||
exit 1
|
||||
;;
|
||||
diff -rupN --no-dereference binutils-2.36.1/gold/configure binutils-2.36.1-new/gold/configure
|
||||
--- binutils-2.36.1/gold/configure 2021-01-09 11:59:18.000000000 +0100
|
||||
+++ binutils-2.36.1-new/gold/configure 2021-07-24 14:35:34.385531970 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/gold/configure binutils-2.37-new/gold/configure
|
||||
--- binutils-2.37/gold/configure 2021-07-18 18:40:53.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/configure 2021-07-24 21:59:24.917746435 +0200
|
||||
@@ -5184,7 +5184,8 @@ for targ in $target $canon_targets; do
|
||||
. ${srcdir}/configure.tgt
|
||||
|
||||
@ -32,9 +32,9 @@ diff -rupN --no-dereference binutils-2.36.1/gold/configure binutils-2.36.1-new/g
|
||||
else
|
||||
targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
|
||||
if test "$targ_extra_obj" != ""; then
|
||||
diff -rupN --no-dereference binutils-2.36.1/gold/configure.ac binutils-2.36.1-new/gold/configure.ac
|
||||
--- binutils-2.36.1/gold/configure.ac 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/gold/configure.ac 2021-07-24 14:35:34.385531970 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/gold/configure.ac binutils-2.37-new/gold/configure.ac
|
||||
--- binutils-2.37/gold/configure.ac 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/configure.ac 2021-07-24 21:59:24.918746425 +0200
|
||||
@@ -181,7 +181,7 @@ for targ in $target $canon_targets; do
|
||||
. ${srcdir}/configure.tgt
|
||||
|
||||
@ -44,10 +44,10 @@ diff -rupN --no-dereference binutils-2.36.1/gold/configure.ac binutils-2.36.1-ne
|
||||
else
|
||||
targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
|
||||
if test "$targ_extra_obj" != ""; then
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/configure.tgt binutils-2.36.1-new/ld/configure.tgt
|
||||
--- binutils-2.36.1/ld/configure.tgt 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/configure.tgt 2021-07-24 14:35:34.385531970 +0200
|
||||
@@ -216,7 +216,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi
|
||||
diff -rupN --no-dereference binutils-2.37/ld/configure.tgt binutils-2.37-new/ld/configure.tgt
|
||||
--- binutils-2.37/ld/configure.tgt 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/configure.tgt 2021-07-24 21:59:24.919746416 +0200
|
||||
@@ -215,7 +215,7 @@ bfin-*-linux-uclibc*) targ_emul=elf32bfi
|
||||
targ_extra_emuls="elf32bfin"
|
||||
targ_extra_libpath=$targ_extra_emuls
|
||||
;;
|
||||
@ -56,7 +56,7 @@ diff -rupN --no-dereference binutils-2.36.1/ld/configure.tgt binutils-2.36.1-new
|
||||
;;
|
||||
cr16-*-elf*) targ_emul=elf32cr16
|
||||
;;
|
||||
@@ -1026,7 +1026,7 @@ z8k-*-coff) targ_emul=z8002
|
||||
@@ -1025,7 +1025,7 @@ z8k-*-coff) targ_emul=z8002
|
||||
targ_extra_ofiles=
|
||||
;;
|
||||
*)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/bfd-in2.h binutils-2.36.1-new/bfd/bfd-in2.h
|
||||
--- binutils-2.36.1/bfd/bfd-in2.h 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/bfd-in2.h 2021-07-24 14:35:24.704535301 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/bfd-in2.h binutils-2.37-new/bfd/bfd-in2.h
|
||||
--- binutils-2.37/bfd/bfd-in2.h 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/bfd-in2.h 2021-07-24 21:59:03.850951615 +0200
|
||||
@@ -30,11 +30,6 @@
|
||||
#ifndef __BFD_H_SEEN__
|
||||
#define __BFD_H_SEEN__
|
||||
@ -13,9 +13,9 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/bfd-in2.h binutils-2.36.1-new/bf
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/bfd-in.h binutils-2.36.1-new/bfd/bfd-in.h
|
||||
--- binutils-2.36.1/bfd/bfd-in.h 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/bfd-in.h 2021-07-24 14:35:24.705535300 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/bfd-in.h binutils-2.37-new/bfd/bfd-in.h
|
||||
--- binutils-2.37/bfd/bfd-in.h 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/bfd-in.h 2021-07-24 21:59:03.851951606 +0200
|
||||
@@ -23,11 +23,6 @@
|
||||
#ifndef __BFD_H_SEEN__
|
||||
#define __BFD_H_SEEN__
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-new/binutils/readelf.c
|
||||
--- binutils-2.36.1/binutils/readelf.c 2021-07-24 14:35:26.548534648 +0200
|
||||
+++ binutils-2.36.1-new/binutils/readelf.c 2021-07-24 14:35:27.502534314 +0200
|
||||
@@ -12241,11 +12241,13 @@ print_dynamic_symbol (Filedata *filedata
|
||||
diff -rupN --no-dereference binutils-2.37/binutils/readelf.c binutils-2.37-new/binutils/readelf.c
|
||||
--- binutils-2.37/binutils/readelf.c 2021-07-24 21:59:08.033910876 +0200
|
||||
+++ binutils-2.37-new/binutils/readelf.c 2021-07-24 21:59:10.159890170 +0200
|
||||
@@ -12616,11 +12616,13 @@ print_dynamic_symbol (Filedata *filedata
|
||||
unsigned int vis = ELF_ST_VISIBILITY (psym->st_other);
|
||||
|
||||
printf (" %-7s", get_symbol_visibility (vis));
|
||||
@ -15,7 +15,7 @@ diff -rupN --no-dereference binutils-2.36.1/binutils/readelf.c binutils-2.36.1-n
|
||||
}
|
||||
printf (" %4s ", get_symbol_index_type (filedata, psym->st_shndx));
|
||||
|
||||
@@ -12284,7 +12286,17 @@ print_dynamic_symbol (Filedata *filedata
|
||||
@@ -12670,7 +12672,17 @@ print_dynamic_symbol (Filedata *filedata
|
||||
version_string);
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/elfxx-x86.c binutils-2.36.1-new/bfd/elfxx-x86.c
|
||||
--- binutils-2.36.1/bfd/elfxx-x86.c 2021-01-18 16:00:36.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/elfxx-x86.c 2021-07-24 14:35:26.551534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/elfxx-x86.c binutils-2.37-new/bfd/elfxx-x86.c
|
||||
--- binutils-2.37/bfd/elfxx-x86.c 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/elfxx-x86.c 2021-07-24 21:59:08.085910370 +0200
|
||||
@@ -107,7 +107,7 @@ elf_x86_allocate_dynrelocs (struct elf_l
|
||||
plt_entry_size = htab->plt.plt_entry_size;
|
||||
|
||||
@ -19,9 +19,9 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/elfxx-x86.c binutils-2.36.1-new/
|
||||
/* Since STT_GNU_IFUNC symbol must go through PLT, we handle it
|
||||
here if it is defined and referenced in a non-shared object. */
|
||||
if (h->type == STT_GNU_IFUNC
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pltgot-1.d binutils-2.36.1-new/ld/testsuite/ld-i386/pltgot-1.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/pltgot-1.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/pltgot-1.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/pltgot-1.d binutils-2.37-new/ld/testsuite/ld-i386/pltgot-1.d
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/pltgot-1.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/pltgot-1.d 2021-07-24 21:59:08.086910360 +0200
|
||||
@@ -2,6 +2,7 @@
|
||||
#readelf: -S --wide
|
||||
#as: --32
|
||||
@ -30,9 +30,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pltgot-1.d binu
|
||||
#...
|
||||
+\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.*
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pltgot-2.d binutils-2.36.1-new/ld/testsuite/ld-i386/pltgot-2.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/pltgot-2.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/pltgot-2.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/pltgot-2.d binutils-2.37-new/ld/testsuite/ld-i386/pltgot-2.d
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/pltgot-2.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/pltgot-2.d 2021-07-24 21:59:08.086910360 +0200
|
||||
@@ -3,7 +3,6 @@
|
||||
#readelf: -d --wide
|
||||
#as: --32
|
||||
@ -41,9 +41,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pltgot-2.d binu
|
||||
#...
|
||||
+0x[0-9a-f]+ +\(PLTREL.*
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.36.1-new/ld/testsuite/ld-i386/pr19636-2d.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2d.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/pr19636-2d.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.37-new/ld/testsuite/ld-i386/pr19636-2d.d
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/pr19636-2d.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/pr19636-2d.d 2021-07-24 21:59:08.086910360 +0200
|
||||
@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse
|
||||
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
|
||||
[0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
|
||||
@ -53,9 +53,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2d.d bi
|
||||
Symbol table '\.dynsym' contains [0-9]+ entries:
|
||||
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.36.1-new/ld/testsuite/ld-i386/pr19636-2e.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2e.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/pr19636-2e.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.37-new/ld/testsuite/ld-i386/pr19636-2e.d
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/pr19636-2e.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/pr19636-2e.d 2021-07-24 21:59:08.086910360 +0200
|
||||
@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse
|
||||
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
|
||||
[0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
|
||||
@ -65,9 +65,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr19636-2e.d bi
|
||||
Symbol table '\.dynsym' contains [0-9]+ entries:
|
||||
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr20830.d binutils-2.36.1-new/ld/testsuite/ld-i386/pr20830.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-i386/pr20830.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-i386/pr20830.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/pr20830.d binutils-2.37-new/ld/testsuite/ld-i386/pr20830.d
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/pr20830.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/pr20830.d 2021-07-24 21:59:08.087910350 +0200
|
||||
@@ -19,7 +19,7 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r8 \(eip\) at cfa-4
|
||||
DW_CFA_nop
|
||||
@ -77,9 +77,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-i386/pr20830.d binut
|
||||
0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pltgot-1.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-1.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pltgot-1.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.37-new/ld/testsuite/ld-x86-64/pltgot-1.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pltgot-1.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pltgot-1.d 2021-07-24 21:59:08.087910350 +0200
|
||||
@@ -2,8 +2,4 @@
|
||||
#readelf: -S --wide
|
||||
#as: --64
|
||||
@ -89,9 +89,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-1.d bi
|
||||
-#...
|
||||
- +\[ *[0-9]+\] \.got\.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+18 +.*
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pltgot-2.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-2.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pltgot-2.d 2021-07-24 14:35:26.552534647 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.37-new/ld/testsuite/ld-x86-64/pltgot-2.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pltgot-2.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pltgot-2.d 2021-07-24 21:59:08.087910350 +0200
|
||||
@@ -3,7 +3,6 @@
|
||||
#readelf: -d --wide
|
||||
#as: --64
|
||||
@ -100,17 +100,17 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pltgot-2.d bi
|
||||
#...
|
||||
+0x[0-9a-f]+ +\(PLTREL.*
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.36.1-new/ld/testsuite/ld-x86-64/plt-main.rd
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/plt-main.rd 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/plt-main.rd 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.37-new/ld/testsuite/ld-x86-64/plt-main.rd
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/plt-main.rd 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/plt-main.rd 2021-07-24 21:59:08.087910350 +0200
|
||||
@@ -1,4 +1,3 @@
|
||||
-#failif
|
||||
#...
|
||||
[0-9a-f ]+R_X86_64_JUMP_SLOT +0+ +bar \+ 0
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830a.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830a.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830a.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr20830a.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830a.d 2021-07-24 21:59:08.088910340 +0200
|
||||
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -119,9 +119,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a.d bi
|
||||
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830a-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830a-now.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830a-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr20830a-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830a-now.d 2021-07-24 21:59:08.088910340 +0200
|
||||
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -130,9 +130,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830a-now.
|
||||
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830b.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830b.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830b.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr20830b.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830b.d 2021-07-24 21:59:08.088910340 +0200
|
||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -143,9 +143,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b.d bi
|
||||
0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830b-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr20830b-now.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830b-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr20830b-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr20830b-now.d 2021-07-24 21:59:08.088910340 +0200
|
||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -156,9 +156,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr20830b-now.
|
||||
0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038a.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038a.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038a.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038a.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038a.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038a.d 2021-07-24 21:59:08.089910331 +0200
|
||||
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -169,9 +169,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a.d bi
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a-now.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038a-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038a-now.d 2021-07-24 14:35:26.553534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038a-now.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038a-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038a-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038a-now.d 2021-07-24 21:59:08.089910331 +0200
|
||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -182,9 +182,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038a-now.
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038b.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038b.d 2021-07-24 14:35:26.554534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038b.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038b.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038b.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038b.d 2021-07-24 21:59:08.089910331 +0200
|
||||
@@ -19,6 +19,7 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -193,9 +193,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b.d bi
|
||||
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b-now.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038b-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038b-now.d 2021-07-24 14:35:26.554534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038b-now.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038b-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038b-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038b-now.d 2021-07-24 21:59:08.089910331 +0200
|
||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -206,9 +206,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038b-now.
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038c.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038c.d 2021-07-24 14:35:26.554534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038c.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038c.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038c.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038c.d 2021-07-24 21:59:08.089910331 +0200
|
||||
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -219,9 +219,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c.d bi
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c-now.d binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038c-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/pr21038c-now.d 2021-07-24 14:35:26.554534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/pr21038c-now.d binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038c-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/pr21038c-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/pr21038c-now.d 2021-07-24 21:59:08.090910321 +0200
|
||||
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
|
||||
DW_CFA_offset: r16 \(rip\) at cfa-8
|
||||
DW_CFA_nop
|
||||
@ -232,9 +232,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/pr21038c-now.
|
||||
0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
|
||||
DW_CFA_nop
|
||||
DW_CFA_nop
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.36.1-new/ld/testsuite/ld-x86-64/tlspic2.rd
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/tlspic2.rd 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/tlspic2.rd 2021-07-24 14:35:26.554534646 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.37-new/ld/testsuite/ld-x86-64/tlspic2.rd
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/tlspic2.rd 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/tlspic2.rd 2021-07-24 21:59:08.090910321 +0200
|
||||
@@ -14,6 +14,7 @@ Section Headers:
|
||||
+\[[ 0-9]+\] .dynsym +.*
|
||||
+\[[ 0-9]+\] .dynstr +.*
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/elf.c binutils-2.36.1-new/bfd/elf.c
|
||||
--- binutils-2.36.1/bfd/elf.c 2021-01-14 10:16:07.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/elf.c 2021-07-24 14:35:30.391533316 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/elf.c binutils-2.37-new/bfd/elf.c
|
||||
--- binutils-2.37/bfd/elf.c 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/elf.c 2021-07-24 21:59:16.679826669 +0200
|
||||
@@ -824,7 +824,13 @@ setup_group (bfd *abfd, Elf_Internal_Shd
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,41 +1,38 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/binutils/dwarf.c binutils-2.36.1-new/binutils/dwarf.c
|
||||
--- binutils-2.36.1/binutils/dwarf.c 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/binutils/dwarf.c 2021-07-24 14:35:37.133531067 +0200
|
||||
@@ -2117,6 +2117,7 @@ get_type_abbrev_from_form (unsigned long
|
||||
switch (form)
|
||||
{
|
||||
case DW_FORM_GNU_ref_alt:
|
||||
+ case DW_FORM_ref_sig8:
|
||||
/* FIXME: We are unable to handle this form at the moment. */
|
||||
return NULL;
|
||||
|
||||
@@ -2146,7 +2147,7 @@ get_type_abbrev_from_form (unsigned long
|
||||
/* FIXME: Are there other DW_FORMs that can be used by types ? */
|
||||
|
||||
default:
|
||||
- warn (_("Unexpected form %lx encountered whilst finding abbreviation for type\n"), form);
|
||||
+ warn (_("Unexpected form %#lx encountered whilst finding abbreviation for type\n"), form);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
diff -rupN --no-dereference binutils-2.36.1/gold/main.cc binutils-2.36.1-new/gold/main.cc
|
||||
--- binutils-2.36.1/gold/main.cc 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/gold/main.cc 2021-07-24 14:35:37.133531067 +0200
|
||||
@@ -290,11 +290,6 @@ main(int argc, char** argv)
|
||||
diff -rupN --no-dereference binutils-2.37/gold/main.cc binutils-2.37-new/gold/main.cc
|
||||
--- binutils-2.37/gold/main.cc 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/gold/main.cc 2021-07-24 21:59:28.964707019 +0200
|
||||
@@ -290,16 +290,6 @@ main(int argc, char** argv)
|
||||
elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
|
||||
elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
|
||||
|
||||
-#ifdef HAVE_MALLINFO
|
||||
-#if defined(HAVE_MALLINFO2)
|
||||
- struct mallinfo2 m = mallinfo2();
|
||||
- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
|
||||
- program_name, static_cast<long long>(m.arena));
|
||||
-#elif defined(HAVE_MALLINFO)
|
||||
- struct mallinfo m = mallinfo();
|
||||
- fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
|
||||
- program_name, static_cast<long long>(m.arena));
|
||||
-#endif
|
||||
-
|
||||
File_read::print_stats();
|
||||
Archive::print_stats();
|
||||
Lib_group::print_stats();
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-now.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-24 14:35:37.133531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d binutils-2.37-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-24 21:59:28.964707019 +0200
|
||||
@@ -11,7 +11,7 @@
|
||||
0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
|
||||
0x.+ \(PLTREL\) \s+RELA
|
||||
0x.+ \(JMPREL\) \s+0x.+
|
||||
- 0x.+ \(BIND_NOW\) \s+
|
||||
+ 0x.+ \(FLAGS\) \s+BIND_NOW
|
||||
0x.+ \(FLAGS_1\) \s+ Flags: NOW
|
||||
0x.+ \(NULL\) \s+ 0x0
|
||||
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-now.d
|
||||
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-24 21:59:28.965707009 +0200
|
||||
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
@ -51,83 +48,83 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-
|
||||
|
||||
Symbol table '\.symtab' contains 35 entries:
|
||||
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
|
||||
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7
|
||||
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8
|
||||
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
|
||||
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
|
||||
9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
||||
- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
||||
- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
||||
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local[ ]+\[VARIANT_PCS\]
|
||||
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
||||
12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
||||
13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
||||
14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
||||
- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
||||
- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
||||
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local2[ ]+\[VARIANT_PCS\]
|
||||
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local2_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
|
||||
18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
||||
19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
||||
20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
|
||||
22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
|
||||
- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
||||
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_global_hidden_def[ ]+\[VARIANT_PCS\]
|
||||
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
||||
24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
|
||||
25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
|
||||
26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
|
||||
- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
||||
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_global_hidden_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
||||
28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
|
||||
29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
||||
- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
||||
- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
||||
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
|
||||
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
|
||||
32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
||||
- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
||||
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
|
||||
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-r.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-r.d
|
||||
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-24 21:59:28.965707009 +0200
|
||||
@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
|
||||
2: 0000000000000000 0 SECTION LOCAL DEFAULT 3
|
||||
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4
|
||||
2: 0000000000000000 0 SECTION LOCAL DEFAULT 3.*
|
||||
3: 0000000000000000 0 SECTION LOCAL DEFAULT 4.*
|
||||
4: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
||||
- 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
||||
- 6: 0000000000000000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
||||
+ 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local[ ]+\[VARIANT_PCS\]
|
||||
+ 6: 0000000000000000 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 6: 0000000000000000 0 IFUNC LOCAL DEFAULT .*
|
||||
7: 0000000000000000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
||||
8: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
||||
9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
10: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
||||
- 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
||||
- 12: 0000000000000038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
||||
+ 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local2[ ]+\[VARIANT_PCS\]
|
||||
+ 12: 0000000000000038 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local2_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 12: 0000000000000038 0 IFUNC LOCAL DEFAULT .*
|
||||
13: 0000000000000038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
||||
14: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
||||
15: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
||||
- 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
||||
- 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
||||
+ 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
|
||||
+ 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN[ ]+1 f_spec_global_hidden_def[ ]+\[VARIANT_PCS\]
|
||||
+ 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
+ 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN .*
|
||||
19: 0000000000000000 0 IFUNC GLOBAL HIDDEN 1 f_base_global_hidden_ifunc
|
||||
- 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
||||
+ 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT .*
|
||||
21: 0000000000000000 0 NOTYPE GLOBAL HIDDEN 1 f_base_global_hidden_def
|
||||
- 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
||||
+ 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN[ ]+1 f_spec_global_hidden_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN .*
|
||||
23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
||||
- 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
||||
+ 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
|
||||
+ 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
25: 0000000000000000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d
|
||||
--- binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-24 21:59:28.978706882 +0200
|
||||
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
|
||||
Num: Value Size Type Bind Vis Ndx Name
|
||||
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
|
||||
@ -143,46 +140,271 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-
|
||||
|
||||
Symbol table '\.symtab' contains 35 entries:
|
||||
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
|
||||
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7
|
||||
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8
|
||||
7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
|
||||
8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
|
||||
9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
|
||||
- 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
|
||||
- 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
|
||||
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local[ ]+\[VARIANT_PCS\]
|
||||
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
||||
12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
|
||||
13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
|
||||
14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
|
||||
- 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
|
||||
- 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
|
||||
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_local2[ ]+\[VARIANT_PCS\]
|
||||
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_local2_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
|
||||
+ 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
|
||||
18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
|
||||
19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
|
||||
20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
|
||||
21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
|
||||
22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
|
||||
- 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
|
||||
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT[ ]+1 f_spec_global_hidden_def[ ]+\[VARIANT_PCS\]
|
||||
+ 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
|
||||
24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
|
||||
25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
|
||||
26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
|
||||
- 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
|
||||
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT[ ]+1 f_spec_global_hidden_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
|
||||
28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
|
||||
29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
|
||||
- 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
|
||||
- 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
|
||||
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
|
||||
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
|
||||
+ 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
+ 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
|
||||
32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
|
||||
- 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
|
||||
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
|
||||
+ 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
|
||||
34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-10.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 14:35:32.403532633 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/compress.exp binutils-2.37-new/ld/testsuite/ld-elf/compress.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elf/compress.exp 2021-07-24 21:59:28.978706882 +0200
|
||||
@@ -167,8 +167,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
||||
|
||||
set test_name "Link with zlib compressed debug output 1"
|
||||
set test normal
|
||||
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
|
||||
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
|
||||
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
||||
send_log "$got\n"
|
||||
fail "$test_name"
|
||||
@@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma
|
||||
|
||||
set test_name "Link with zlib compressed debug output 2"
|
||||
set test zlibnormal
|
||||
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
||||
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
||||
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
||||
send_log "$got\n"
|
||||
fail "$test_name"
|
||||
@@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
||||
|
||||
set test_name "Link with zlib-gnu compressed debug output 1"
|
||||
set test gnunormal
|
||||
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
||||
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
|
||||
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
||||
send_log "$got\n"
|
||||
fail "$test_name"
|
||||
@@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
|
||||
|
||||
set test gabinormal
|
||||
set test_name "Link with zlib-gabi compressed debug output 1"
|
||||
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
|
||||
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
|
||||
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
|
||||
if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
|
||||
send_log "$got\n"
|
||||
fail "$test_name"
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out binutils-2.37-new/ld/testsuite/ld-elf/pr26580-3.out
|
||||
--- binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elf/pr26580-3.out 2021-07-24 21:59:28.979706873 +0200
|
||||
@@ -1,2 +1,2 @@
|
||||
library not loaded
|
||||
-alignment 1
|
||||
+alignment .
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/shared.exp binutils-2.37-new/ld/testsuite/ld-elf/shared.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elf/shared.exp 2021-07-24 21:59:28.979706873 +0200
|
||||
@@ -1536,18 +1536,6 @@ if { [istarget *-*-linux*]
|
||||
"pr22393-2-static" \
|
||||
"pass.out" \
|
||||
] \
|
||||
- [list \
|
||||
- "Run pr21964-4" \
|
||||
- "" \
|
||||
- "" \
|
||||
- {pr21964-4.c} \
|
||||
- "pr21964-4" \
|
||||
- "pass.out" \
|
||||
- "" \
|
||||
- "" \
|
||||
- "" \
|
||||
- "-ldl" \
|
||||
- ] \
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1629,6 +1617,7 @@ if [istarget "sparc*-*-*"] {
|
||||
if { ([istarget "*-*-linux*"]
|
||||
|| [istarget "*-*-nacl*"]
|
||||
|| [istarget "*-*-gnu*"])
|
||||
+ && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"]
|
||||
&& ![istarget "mips*-*-*"] } {
|
||||
run_ld_link_tests [list \
|
||||
[list \
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elf/tls.exp binutils-2.37-new/ld/testsuite/ld-elf/tls.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-elf/tls.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elf/tls.exp 2021-07-24 21:59:28.979706873 +0200
|
||||
@@ -32,6 +32,9 @@ if { !([istarget *-*-linux*]
|
||||
if { ![check_compiler_available] } {
|
||||
return
|
||||
}
|
||||
+if { [istarget s390x*-*-*] } {
|
||||
+ return
|
||||
+}
|
||||
|
||||
# This target requires extra GAS options when building PIC/PIE code.
|
||||
set AFLAGS_PIC ""
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.37-new/ld/testsuite/ld-elfvsb/elfvsb.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-elfvsb/elfvsb.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-elfvsb/elfvsb.exp 2021-07-24 21:59:28.980706863 +0200
|
||||
@@ -94,6 +94,10 @@ if { [istarget *-*-linux*]
|
||||
}
|
||||
}
|
||||
|
||||
+if { [istarget i686*-*-*] } {
|
||||
+ set support_protected "no"
|
||||
+}
|
||||
+
|
||||
# The test procedure.
|
||||
proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
|
||||
global CC
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-gc/pr13683.d binutils-2.37-new/ld/testsuite/ld-gc/pr13683.d
|
||||
--- binutils-2.37/ld/testsuite/ld-gc/pr13683.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-gc/pr13683.d 2021-07-24 21:59:28.980706863 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
#source: dummy.s
|
||||
#ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
|
||||
#nm: --format=bsd
|
||||
-#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
|
||||
+#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
|
||||
|
||||
# Note - look for both "foo" and "foo2" being defined, non-zero function symbols
|
||||
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-gc/pr19161.d binutils-2.37-new/ld/testsuite/ld-gc/pr19161.d
|
||||
--- binutils-2.37/ld/testsuite/ld-gc/pr19161.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-gc/pr19161.d 2021-07-24 21:59:28.980706863 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
#source: dummy.s
|
||||
#ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
|
||||
#nm: --format=bsd
|
||||
-#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-*
|
||||
+#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
|
||||
#xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
|
||||
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/i386.exp binutils-2.37-new/ld/testsuite/ld-i386/i386.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/i386.exp 2021-07-24 21:59:28.981706853 +0200
|
||||
@@ -1057,15 +1057,6 @@ if { [isnative]
|
||||
"pr18900.out" \
|
||||
] \
|
||||
[list \
|
||||
- "Run pr19031" \
|
||||
- "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
|
||||
- "-Wa,-mx86-used-note=yes" \
|
||||
- { pr19031b.S pr19031c.c } \
|
||||
- "pr19031" \
|
||||
- "pr19031.out" \
|
||||
- "$NOPIE_CFLAGS" \
|
||||
- ] \
|
||||
- [list \
|
||||
"Run got1" \
|
||||
"$NOPIE_LDFLAGS tmpdir/got1d.so" \
|
||||
"-Wa,-mx86-used-note=yes" \
|
||||
@@ -1117,7 +1108,9 @@ if { [isnative]
|
||||
] \
|
||||
]
|
||||
|
||||
- undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
||||
+ if { ! [istarget i686*-*-*] } {
|
||||
+ undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
|
||||
+ }
|
||||
undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
|
||||
undefined_weak "-fPIE" "-pie"
|
||||
undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS"
|
||||
@@ -1181,7 +1174,7 @@ if { [isnative]
|
||||
] \
|
||||
]
|
||||
|
||||
- if { [istarget "i?86-*-linux*"] } {
|
||||
+ if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } {
|
||||
run_cc_link_tests [list \
|
||||
[list \
|
||||
"Build pr21168.so with -z ibtplt" \
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/plt-main.rd binutils-2.37-new/ld/testsuite/ld-i386/plt-main.rd
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/plt-main.rd 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/plt-main.rd 2021-07-24 21:59:28.981706853 +0200
|
||||
@@ -1,4 +1 @@
|
||||
-#failif
|
||||
-#...
|
||||
-[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd binutils-2.37-new/ld/testsuite/ld-i386/plt-pie-ibt.dd
|
||||
--- binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-24 21:59:28.981706853 +0200
|
||||
@@ -1,7 +1,2 @@
|
||||
#...
|
||||
-Disassembly of section .plt.got:
|
||||
-
|
||||
-[a-f0-9]+ <[_a-z]+@plt>:
|
||||
-[ ]*[a-f0-9]+: f3 0f 1e fb endbr32
|
||||
-[ ]*[a-f0-9]+: ff a3 .. .. .. .. jmp +\*\-0x[a-f0-9]+\(%ebx\)
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.37-new/ld/testsuite/ld-ifunc/ifunc.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-24 21:59:28.981706853 +0200
|
||||
@@ -39,6 +39,8 @@ if { ![is_elf_format] || ![supports_gnu_
|
||||
|| [istarget nds32*-*-*]
|
||||
|| [istarget nios2-*-*]
|
||||
|| [istarget or1k-*-*]
|
||||
+ || [istarget powerpc*-*-*]
|
||||
+ || [istarget ppc*-*-*]
|
||||
|| [istarget score*-*-*]
|
||||
|| [istarget sh*-*-*]
|
||||
|| [istarget tic6x-*-*]
|
||||
@@ -664,6 +666,11 @@ run_cc_link_tests [list \
|
||||
] \
|
||||
]
|
||||
|
||||
+if { [isnative]
|
||||
+ && !([istarget "powerpc-*-*"]
|
||||
+ || [istarget "aarch64*-*-*"] || [istarget "arm*-*-*"]
|
||||
+ || [istarget "sparc*-*-*"]
|
||||
+ || [istarget "riscv*-*-*"]) } {
|
||||
run_ld_link_exec_tests [list \
|
||||
[list \
|
||||
"Run pr18808" \
|
||||
@@ -714,6 +721,7 @@ run_ld_link_exec_tests [list \
|
||||
"pr18841.out" \
|
||||
] \
|
||||
]
|
||||
+}
|
||||
|
||||
# The pr23169 testcase is not valid. In general, you can't call ifunc
|
||||
# resolvers in another binary unless you know what you're doing. In
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 21:59:20.653787965 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-10.d 2021-07-24 21:59:28.982706843 +0200
|
||||
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
||||
#...
|
||||
@ -192,9 +414,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d b
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-11.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 14:35:32.404532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 21:59:20.653787965 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-11.d 2021-07-24 21:59:28.982706843 +0200
|
||||
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
||||
#...
|
||||
@ -207,9 +429,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d b
|
||||
#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-12.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d 2021-01-09 11:47:34.000000000 +0100
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-12.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-12.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-12.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-12.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-12.d 2021-07-24 21:59:28.982706843 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
#...
|
||||
-.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF
|
||||
@ -221,9 +443,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d b
|
||||
+.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
|
||||
+.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-16.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 14:35:32.404532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 21:59:20.654787955 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-16.d 2021-07-24 21:59:28.982706843 +0200
|
||||
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -233,9 +455,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d b
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-17.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 14:35:32.404532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 14:35:37.134531067 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 21:59:20.654787955 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-17.d 2021-07-24 21:59:28.983706834 +0200
|
||||
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -245,9 +467,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d b
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-18.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 14:35:32.404532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 14:35:37.135531066 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 21:59:20.654787955 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-18.d 2021-07-24 21:59:28.983706834 +0200
|
||||
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* not claimed
|
||||
#...
|
||||
@ -257,9 +479,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d b
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-19.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 14:35:32.405532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 14:35:37.135531066 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 21:59:20.654787955 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-19.d 2021-07-24 21:59:28.983706834 +0200
|
||||
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
|
||||
hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
|
||||
#...
|
||||
@ -272,9 +494,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d b
|
||||
#...
|
||||
hook called: cleanup.
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-8.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 14:35:32.406532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 14:35:37.135531066 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 21:59:20.657787926 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-8.d 2021-07-24 21:59:28.983706834 +0200
|
||||
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -284,9 +506,9 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d bi
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-9.d
|
||||
--- binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 14:35:32.406532632 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 14:35:37.135531066 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 21:59:20.657787926 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin-9.d 2021-07-24 21:59:28.983706834 +0200
|
||||
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
|
||||
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
||||
#...
|
||||
@ -296,10 +518,179 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d bi
|
||||
Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
|
||||
#...
|
||||
hook called: cleanup.
|
||||
diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp
|
||||
--- binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-24 14:35:37.129531069 +0200
|
||||
+++ binutils-2.36.1-new/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-24 14:35:37.135531066 +0200
|
||||
@@ -1437,22 +1437,6 @@ if { [isnative] && [check_compiler_avail
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-plugin/plugin.exp binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 21:59:20.657787926 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-plugin/plugin.exp 2021-07-24 21:59:28.984706824 +0200
|
||||
@@ -81,6 +81,7 @@ if { [istarget m681*-*-*] || [istarget m
|
||||
# otherwise get FAILS due to _.frame
|
||||
set CFLAGS "$CFLAGS -fomit-frame-pointer"
|
||||
}
|
||||
+
|
||||
# In order to define symbols in plugin options in the list of tests below,
|
||||
# we need to know if the platform prepends an underscore to C symbols,
|
||||
# which we find out by compiling the test objects now. If there is any
|
||||
@@ -119,7 +120,7 @@ if { $can_compile && !$failed_compile }
|
||||
|
||||
# I do not know why, but the underscore prefix test is going
|
||||
# wrong on ppc64le targets. So override it here.
|
||||
-if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } {
|
||||
+if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } {
|
||||
set _ ""
|
||||
}
|
||||
|
||||
@@ -137,6 +138,9 @@ if [is_pecoff_format] {
|
||||
#otherwise relocs overflow to symbols defined on the command line
|
||||
append libs " --image-base=0x10000000"
|
||||
}
|
||||
+if { [istarget aarch64*-*-*] || [istarget arm*-*-*] } {
|
||||
+ append libs " --defsym __aeabi_unwind_cpp_pr0=0"
|
||||
+}
|
||||
|
||||
set plugin_tests [list \
|
||||
[list "load plugin" "-plugin $plugin_path \
|
||||
@@ -304,6 +308,7 @@ if { !$can_compile || $failed_compile }
|
||||
run_ld_link_tests $plugin_tests
|
||||
|
||||
if { [is_elf_format] \
|
||||
+ && ! [istarget ppc64*-*-*] && ! [istarget powerpc*-*-*]
|
||||
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func1p.c tmpdir/func1p.o] \
|
||||
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func2i.c tmpdir/func2i.o] \
|
||||
&& [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func3h.c tmpdir/func3h.o] } {
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/group1.sym binutils-2.37-new/ld/testsuite/ld-powerpc/group1.sym
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/group1.sym 2021-07-24 21:59:28.984706824 +0200
|
||||
@@ -1,3 +1 @@
|
||||
-#...
|
||||
-.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/group3.sym binutils-2.37-new/ld/testsuite/ld-powerpc/group3.sym
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/group3.sym 2021-07-24 21:59:28.984706824 +0200
|
||||
@@ -1,3 +1 @@
|
||||
-#...
|
||||
-.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d binutils-2.37-new/ld/testsuite/ld-powerpc/notoc3.d
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/notoc3.d 2021-07-24 21:59:28.984706824 +0200
|
||||
@@ -58,7 +58,7 @@ Disassembly of section \.text:
|
||||
|
||||
.* <f2>:
|
||||
.*: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
||||
-.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
||||
+.*:.*
|
||||
.*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
|
||||
.*: (18 00 41 e8|e8 41 00 18) ld r2,24\(r1\)
|
||||
.*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
|
||||
@@ -73,7 +73,7 @@ Disassembly of section \.text:
|
||||
|
||||
.* <g2>:
|
||||
.*: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
||||
-.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
||||
+.*:.*
|
||||
.*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
|
||||
.*: (00 00 00 60|60 00 00 00) nop
|
||||
.*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
|
||||
@@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
|
||||
|
||||
8000000000000000 <ext>:
|
||||
8000000000000000: (02 10 40 3c|3c 40 10 02) lis r2,4098
|
||||
-8000000000000004: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
|
||||
+8000000000000004:.*
|
||||
8000000000000008: (00 00 00 60|60 00 00 00) nop
|
||||
800000000000000c: (20 00 80 4e|4e 80 00 20) blr
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d binutils-2.37-new/ld/testsuite/ld-powerpc/pr23937.d
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/pr23937.d 2021-07-24 21:59:28.985706814 +0200
|
||||
@@ -5,6 +5,4 @@
|
||||
|
||||
#...
|
||||
.* R_PPC64_IRELATIVE +10000180
|
||||
-#...
|
||||
-.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
|
||||
#pass
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32no.r
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-24 21:59:28.985706814 +0200
|
||||
@@ -22,6 +22,7 @@ Section Headers:
|
||||
+\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
|
||||
+\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4
|
||||
+\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
|
||||
+#pass
|
||||
+\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
||||
+\[[ 0-9]+\] \.strtab +STRTAB +.*
|
||||
+\[[ 0-9]+\] \.shstrtab +STRTAB +.*
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32.r
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-24 21:59:28.986706805 +0200
|
||||
@@ -22,7 +22,8 @@ Section Headers:
|
||||
+\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
|
||||
+\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
|
||||
+\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
|
||||
- +\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
||||
+#pass
|
||||
++\[[ 0-9]+\] \.symtab +SYMTAB +.*
|
||||
+\[[ 0-9]+\] \.strtab +STRTAB +.*
|
||||
+\[[ 0-9]+\] \.shstrtab +STRTAB +.*
|
||||
#...
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.37-new/ld/testsuite/ld-powerpc/tlsso32.r
|
||||
--- binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-24 21:59:28.986706805 +0200
|
||||
@@ -20,6 +20,7 @@ Section Headers:
|
||||
+\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
|
||||
+\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
|
||||
+\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
|
||||
+#pass
|
||||
+\[[ 0-9]+\] \.symtab +.*
|
||||
+\[[ 0-9]+\] \.strtab +.*
|
||||
+\[[ 0-9]+\] \.shstrtab +.*
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-scripts/crossref.exp binutils-2.37-new/ld/testsuite/ld-scripts/crossref.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-scripts/crossref.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-scripts/crossref.exp 2021-07-24 21:59:28.986706805 +0200
|
||||
@@ -147,6 +147,8 @@ set exec_output [prune_warnings $exec_ou
|
||||
|
||||
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
||||
|
||||
+setup_xfail i686*-*-*
|
||||
+
|
||||
if [string match "" $exec_output] then {
|
||||
pass $test3
|
||||
} else {
|
||||
@@ -187,6 +189,8 @@ set exec_output [prune_warnings $exec_ou
|
||||
|
||||
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
||||
|
||||
+setup_xfail i686*-*-*
|
||||
+
|
||||
if [string match "" $exec_output] then {
|
||||
pass $test6
|
||||
} else {
|
||||
@@ -199,6 +203,8 @@ set exec_output [prune_warnings $exec_ou
|
||||
|
||||
regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
|
||||
|
||||
+setup_xfail i686*-*-*
|
||||
+
|
||||
if [string match "" $exec_output] then {
|
||||
fail $test7
|
||||
} else {
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-shared/shared.exp binutils-2.37-new/ld/testsuite/ld-shared/shared.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-shared/shared.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-shared/shared.exp 2021-07-24 21:59:28.987706795 +0200
|
||||
@@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \
|
||||
&& ![istarget hppa*-*-linux*] \
|
||||
&& ![istarget i?86-*-sysv4*] \
|
||||
&& ![istarget i?86-*-unixware] \
|
||||
- && ![istarget i?86-*-elf*] \
|
||||
- && ![istarget i?86-*-linux*] \
|
||||
- && ![istarget i?86-*-gnu*] \
|
||||
&& ![istarget *-*-nacl*] \
|
||||
&& ![istarget ia64-*-elf*] \
|
||||
&& ![istarget ia64-*-linux*] \
|
||||
diff -rupN --no-dereference binutils-2.37/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.37-new/ld/testsuite/ld-x86-64/x86-64.exp
|
||||
--- binutils-2.37/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-08 13:37:20.000000000 +0200
|
||||
+++ binutils-2.37-new/ld/testsuite/ld-x86-64/x86-64.exp 2021-07-24 21:59:28.987706795 +0200
|
||||
@@ -1466,22 +1466,6 @@ if { [isnative] && [check_compiler_avail
|
||||
} else {
|
||||
run_cc_link_tests [list \
|
||||
[list \
|
||||
@ -322,7 +713,7 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp bi
|
||||
"Build lam-u48.so" \
|
||||
"-shared -Wl,-z,lam-u48" \
|
||||
"" \
|
||||
@@ -1766,49 +1750,6 @@ if { [isnative] && [check_compiler_avail
|
||||
@@ -1813,49 +1797,6 @@ if { [isnative] && [check_compiler_avail
|
||||
if { [istarget "x86_64-*-linux*"] \
|
||||
&& ![istarget "x86_64-*-linux*-gnux32"]} {
|
||||
|
||||
@ -372,7 +763,7 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp bi
|
||||
run_ld_link_exec_tests [list \
|
||||
[list \
|
||||
"Run plt-main with -z bndplt" \
|
||||
@@ -1893,66 +1834,6 @@ if { [isnative] && [check_compiler_avail
|
||||
@@ -1940,66 +1881,6 @@ if { [isnative] && [check_compiler_avail
|
||||
set pltdump {{objdump {-drw} plt-main-ibt.dd}}
|
||||
set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
|
||||
}
|
||||
@ -439,7 +830,7 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp bi
|
||||
|
||||
run_ld_link_exec_tests [list \
|
||||
[list \
|
||||
@@ -1997,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
|
||||
@@ -2044,24 +1925,6 @@ if { [isnative] && [check_compiler_avail
|
||||
"plt-main.out" \
|
||||
"-fPIC" \
|
||||
] \
|
||||
@ -464,7 +855,7 @@ diff -rupN --no-dereference binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp bi
|
||||
]
|
||||
|
||||
if { [check_ifunc_attribute_available] } {
|
||||
@@ -2041,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
|
||||
@@ -2088,7 +1951,6 @@ if { [isnative] && [check_compiler_avail
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/configure binutils-2.36.1-new/bfd/configure
|
||||
--- binutils-2.36.1/bfd/configure 2021-02-06 10:02:09.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/configure 2021-07-24 14:35:35.306531665 +0200
|
||||
@@ -13461,11 +13461,13 @@ if test "x${ac_cv_sizeof_long}" = "x8";
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/configure binutils-2.37-new/bfd/configure
|
||||
--- binutils-2.37/bfd/configure 2021-07-18 18:36:53.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/configure 2021-07-24 21:59:26.907727053 +0200
|
||||
@@ -12751,11 +12751,13 @@ if test "x${ac_cv_sizeof_long}" = "x8";
|
||||
BFD_HOST_64BIT_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
||||
@ -17,10 +17,10 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/configure binutils-2.36.1-new/bf
|
||||
BFD_HOSTPTR_T="unsigned long long"
|
||||
fi
|
||||
fi
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/configure.ac binutils-2.36.1-new/bfd/configure.ac
|
||||
--- binutils-2.36.1/bfd/configure.ac 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/configure.ac 2021-07-24 14:35:35.306531665 +0200
|
||||
@@ -219,11 +219,13 @@ if test "x${ac_cv_sizeof_long}" = "x8";
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/configure.ac binutils-2.37-new/bfd/configure.ac
|
||||
--- binutils-2.37/bfd/configure.ac 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/configure.ac 2021-07-24 21:59:26.908727043 +0200
|
||||
@@ -230,11 +230,13 @@ if test "x${ac_cv_sizeof_long}" = "x8";
|
||||
BFD_HOST_64BIT_LONG=1
|
||||
test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
|
||||
test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.am binutils-2.36.1-new/bfd/Makefile.am
|
||||
--- binutils-2.36.1/bfd/Makefile.am 2021-01-09 11:47:33.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/Makefile.am 2021-07-24 14:35:22.791535987 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/Makefile.am binutils-2.37-new/bfd/Makefile.am
|
||||
--- binutils-2.37/bfd/Makefile.am 2021-07-08 13:37:19.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/Makefile.am 2021-07-24 21:59:00.067988456 +0200
|
||||
@@ -942,8 +942,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD
|
||||
bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
|
||||
@echo "creating $@"
|
||||
@ -21,9 +21,9 @@ diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.am binutils-2.36.1-new/
|
||||
-e "s,@report_bugs_to@,$$report_bugs_to," \
|
||||
< $(srcdir)/version.h > $@; \
|
||||
echo "$${bfd_soversion}" > libtool-soversion
|
||||
diff -rupN --no-dereference binutils-2.36.1/bfd/Makefile.in binutils-2.36.1-new/bfd/Makefile.in
|
||||
--- binutils-2.36.1/bfd/Makefile.in 2021-02-06 10:02:09.000000000 +0100
|
||||
+++ binutils-2.36.1-new/bfd/Makefile.in 2021-07-24 14:35:22.792535986 +0200
|
||||
diff -rupN --no-dereference binutils-2.37/bfd/Makefile.in binutils-2.37-new/bfd/Makefile.in
|
||||
--- binutils-2.37/bfd/Makefile.in 2021-07-18 18:36:53.000000000 +0200
|
||||
+++ binutils-2.37-new/bfd/Makefile.in 2021-07-24 21:59:00.069988437 +0200
|
||||
@@ -2053,8 +2053,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES)
|
||||
bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
|
||||
@echo "creating $@"
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
%global run_testsuite 1
|
||||
|
||||
Name: mingw-binutils
|
||||
Version: 2.36.1
|
||||
Release: 3%{?dist}
|
||||
Version: 2.37
|
||||
Release: 1%{?dist}
|
||||
Summary: Cross-compiled version of binutils for Win32 and Win64 environments
|
||||
|
||||
License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+
|
||||
|
||||
URL: http://www.gnu.org/software/binutils/
|
||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
|
||||
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
|
||||
|
||||
### Patches from native package
|
||||
# Purpose: Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the
|
||||
@ -78,21 +78,21 @@ Patch08: binutils-2.27-aarch64-ifunc.patch
|
||||
Patch09: binutils-do-not-link-with-static-libstdc++.patch
|
||||
|
||||
# Purpose: Allow OS specific sections in section groups.
|
||||
# Lifetime: Fixed in 2.36 (maybe)
|
||||
# Lifetime: Fixed in 2.38 (maybe)
|
||||
Patch10: binutils-special-sections-in-groups.patch
|
||||
|
||||
# Purpose: Fix linker testsuite failures.
|
||||
# Lifetime: Fixed in 2.36 (maybe)
|
||||
# Lifetime: Fixed in 2.37 (maybe)
|
||||
Patch11: binutils-fix-testsuite-failures.patch
|
||||
|
||||
# Purpose: Stop gold from aborting when input sections with the same name
|
||||
# have different flags.
|
||||
# Lifetime: Fixed in 2.36 (maybe)
|
||||
# Lifetime: Fixed in 2.38 (maybe)
|
||||
Patch12: binutils-gold-mismatched-section-flags.patch
|
||||
|
||||
# Purpose: Add a check to the GOLD linker for a corrupt input file
|
||||
# with a fuzzed section offset.
|
||||
# Lifetime: Fixed in 2.36 (maybe)
|
||||
# Lifetime: Fixed in 2.38 (maybe)
|
||||
Patch13: binutils-CVE-2019-1010204.patch
|
||||
|
||||
# Purpose: Change the gold configuration script to only warn about
|
||||
@ -109,22 +109,16 @@ Patch14: binutils-gold-warn-unsupported.patch
|
||||
# Lifetime: Permanent.
|
||||
Patch15: binutils-use-long-long.patch
|
||||
|
||||
# Purpose: Bring in changes to the 2.36 branch that were made after the
|
||||
# 2.36.1 release was created.
|
||||
# Lifetime: Fixed in 2.37
|
||||
Patch16: binutils-2.36-branch-updates.patch
|
||||
|
||||
# Purpose: Fix testsuite failures due to the patches applied here.
|
||||
# Lifetime: Permanent, but varying with each new rebase.
|
||||
Patch17: binutils-testsuite-fixes.patch
|
||||
Patch16: binutils-testsuite-fixes.patch
|
||||
|
||||
# Purpose: Enable the creation of .note.gnu.property sections by the GOLD
|
||||
# linker for x86 binaries.
|
||||
# Lifetime: Fixed in 2.38 maybe
|
||||
Patch17: binutils-gold-i386-gnu-property-notes.patch
|
||||
|
||||
### MINGW specific patches
|
||||
|
||||
Patch102: binutils-config.patch
|
||||
# Backport fix for "relocation truncated to fit" errors
|
||||
# https://sourceware.org/pipermail/binutils/2021-April/116019.html
|
||||
Patch103: binutils-fix-weak-undef-symbols.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
@ -388,6 +382,9 @@ rm -rf %{buildroot}/multilib
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jul 24 2021 Sandro Mani <manisandro@gmail.com> - 2.37-1
|
||||
- Update to 2.37
|
||||
|
||||
* Sat Jul 24 2021 Sandro Mani <manisandro@gmail.com> - 2.36.1-3
|
||||
- Backport fix for "relocation truncated to fit" errors
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (binutils-2.36.1.tar.bz2) = 5c40cfe05b922492627db71990dd2ba6030fd2de4bdba3f53a3f274543ff161fb56e2f6bdac107e0ffdcfd095e499c54e1157ee1865723baefa67b5b4d3da201
|
||||
SHA512 (binutils-2.37.tar.xz) = 5c11aeef6935860a6819ed3a3c93371f052e52b4bdc5033da36037c1544d013b7f12cb8d561ec954fe7469a68f1b66f1a3cd53d5a3af7293635a90d69edd15e7
|
||||
|
||||
Loading…
Reference in New Issue
Block a user