Can't submit this from non-devel project, so switch the devel:gcc

variant temporarily to this one.

- Add -std=gnu17 to move gcc15 forward, as temporary measure until
  the binutils version can be updated [bsc#1241916].

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=492
This commit is contained in:
2025-05-07 12:32:37 +00:00
committed by Git OBS Bridge
parent f239e244d8
commit 9987aa9839
15 changed files with 331 additions and 198 deletions

View File

@@ -1,16 +1,56 @@
Change default common-page-size to 64K on aarch64. This enables the use
of RELRO since we are using 64K pages.
Index: binutils-2.44/bfd/elfnn-aarch64.c
Index: binutils-2.41/bfd/elfnn-aarch64.c
===================================================================
--- binutils-2.44.orig/bfd/elfnn-aarch64.c 2025-03-20 17:14:13.571772130 +0100
+++ binutils-2.44/bfd/elfnn-aarch64.c 2025-03-20 17:14:49.386359040 +0100
@@ -10622,7 +10622,7 @@ const struct elf_size_info elfNN_aarch64
#define ELF_TARGET_ID AARCH64_ELF_DATA
--- binutils-2.41.orig/bfd/elfnn-aarch64.c 2023-07-03 01:00:00.000000000 +0200
+++ binutils-2.41/bfd/elfnn-aarch64.c 2023-08-16 16:31:51.238779641 +0200
@@ -10251,7 +10251,7 @@ const struct elf_size_info elfNN_aarch64
#define ELF_ARCH bfd_arch_aarch64
#define ELF_MACHINE_CODE EM_AARCH64
#define ELF_MAXPAGESIZE 0x10000
-#define ELF_COMMONPAGESIZE 0x1000
+#define ELF_COMMONPAGESIZE 0x10000
#define bfd_elfNN_bfd_is_target_special_symbol \
elfNN_aarch64_is_target_special_symbol
#define bfd_elfNN_bfd_free_cached_info \
elfNN_aarch64_bfd_free_cached_info
Index: binutils-2.41/gold/aarch64.cc
===================================================================
--- binutils-2.41.orig/gold/aarch64.cc 2023-07-03 01:00:00.000000000 +0200
+++ binutils-2.41/gold/aarch64.cc 2023-08-16 16:28:35.959450565 +0200
@@ -3555,7 +3555,7 @@ const Target::Target_info Target_aarch64
"/lib/ld.so.1", // program interpreter
0x400000, // default_text_segment_address
0x10000, // abi_pagesize (overridable by -z max-page-size)
- 0x1000, // common_pagesize (overridable by -z common-page-size)
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
false, // isolate_execinstr
0, // rosegment_gap
elfcpp::SHN_UNDEF, // small_common_shndx
@@ -3584,7 +3584,7 @@ const Target::Target_info Target_aarch64
"/lib/ld.so.1", // program interpreter
0x400000, // default_text_segment_address
0x10000, // abi_pagesize (overridable by -z max-page-size)
- 0x1000, // common_pagesize (overridable by -z common-page-size)
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
false, // isolate_execinstr
0, // rosegment_gap
elfcpp::SHN_UNDEF, // small_common_shndx
@@ -3613,7 +3613,7 @@ const Target::Target_info Target_aarch64
"/lib/ld.so.1", // program interpreter
0x400000, // default_text_segment_address
0x10000, // abi_pagesize (overridable by -z max-page-size)
- 0x1000, // common_pagesize (overridable by -z common-page-size)
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
false, // isolate_execinstr
0, // rosegment_gap
elfcpp::SHN_UNDEF, // small_common_shndx
@@ -3642,7 +3642,7 @@ const Target::Target_info Target_aarch64
"/lib/ld.so.1", // program interpreter
0x400000, // default_text_segment_address
0x10000, // abi_pagesize (overridable by -z max-page-size)
- 0x1000, // common_pagesize (overridable by -z common-page-size)
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
false, // isolate_execinstr
0, // rosegment_gap
elfcpp::SHN_UNDEF, // small_common_shndx

BIN
binutils-2.43-branch.diff.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
binutils-2.43.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

16
binutils-2.43.tar.bz2.sig Normal file
View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEOiS8Ho+0CfqfFDcYE/zvid2ePE8FAmaviv8ACgkQE/zvid2e
PE9C2hAAw9RCvIe7c6zdMBslwnHm5lJE4P8OLgfvQhW1LyNMM7q6UtJC0oG1mCAk
qpfDkp62XXXLu8QUVvuGhLOrAC7PkkwRs+RKaidOmQ1DDaFsh6h1EilbRbeXhwT6
+GgL9gmoflWQ+/VTi8ETc6F0kxfbOFLDgWQf8LZ66g9Z5RzoUaRfcktljjPpmgvh
kp2V/8QsY6rTtJDpTfSp5ysvvfkuh0DQBN/aOlnjcbupaj2p2aBrs0PiAmtiNfGZ
616FCFytqNYX8KxVV3OZcTOCKARcFxXc/4q1za+0musaqLHGlw8h27jTEU51lQJy
gemDWIJbVoth/jK4/pIl7rsiLte136qj6JybsAh3LLM7JTcwf9rha0DyU0nBmSyt
4PfzOsoSRjfIBTTPlmS7L2thY8+Y0sYPcIf8lj8ue9YZyYYSix/8KUm/0vvmwJr8
XUiw0sUpGcSUTFjqhNxcjqORSQBWb9kjRod+PdU9LEFE4cp3mexkzjIgEWDkRjqP
sTdstNT1A5LiX5XhcMKVze9D28y2XQRxkbvbBbm4nt4cIBvk1QtsZZH4bR5ABgyF
q8kp0FpBrbvOBTDQsuAuvL9lOg5unngZLAOeogxsOJblirzX6cPku5NDQgY7GYUP
SIEOJaMU5OoI6NU9iVt1LBZZaMO6+16PTNQ2MArgI0g2B1HNC3U=
=vvKA
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0da0e602b408552b4d4ea532e7db2627ef2f016f6a01271940a5eae465ac8e3a
size 7119

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f66390a661faa117d00fab2e79cf2dc9d097b42cc296bf3f8677d1e7b452dc3a
size 37870281

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEOiS8Ho+0CfqfFDcYE/zvid2ePE8FAmefZLYACgkQE/zvid2e
PE9IphAA5CHrCZlkizV8I9k2ZTbQL0m0ly7vvSv7SWEj2RtZaIwF6Eu3D+hf2evm
xlcrYWDFNFGD3EVvXOEI2JEpIFXfOCd2xJxRNjcwjgf57PN0p3zFmmzJRoNSXeYw
Tbx6BZzI8IfFXH3u5g+6nZHAetSSGzMYrzVurfY/xsflHrNK9X/8zb1yhjArRRX8
sS+Cp9N3CNWqOvMcT3scl5N/UdSSM7/QDK+W+zNSZcNbwwZUhaSC5Y7uwhAcd11a
sSlCykv6S49LohzXSHaJKLKNS1aNnQuqMvUnuKL5UMFWmBWTDJuALoHfr2xm8KFx
2/Pzk1FVXTnCC34DU6YL4RxNwNjAZsjrtvAOY+FLY0A+MZF7dh+mk4SzlZXH1G1c
INDh15VouyEQSBDqXwunPcDXMzql/RbGnE3HPO/kzdpBKZl8ovJvOnWNVBvUcZDk
mKriYJpe2P4X4qIOz7NVc8z1u+RcmuBAQRHu5KU54/njcOAmOnB/0aE4w9ZP0qRb
ik+f4n95N7nE9uHNQHJfLYJ7V9Zks6f5kpow3OwmqxSxSA2g1AkJJClcPER9fJeL
d32bQ4LlXX+19t4dyxS+ep2os3bHwwT+pXO+3X/pbZ8KN2RkBWwKsCug/Axj82Kp
+gNm4S/akfIcIbP2+5dcykngkr+qx2yrFAjizw6UKMIw4fK9kNk=
=Mx+P
-----END PGP SIGNATURE-----

View File

@@ -1,8 +1,8 @@
Index: binutils-2.44/gas/config/tc-i386.c
Index: binutils-2.42/gas/config/tc-i386.c
===================================================================
--- binutils-2.44.orig/gas/config/tc-i386.c 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/config/tc-i386.c 2025-03-20 16:55:56.242710804 +0100
@@ -3299,11 +3299,15 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED
--- binutils-2.42.orig/gas/config/tc-i386.c 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/config/tc-i386.c 2024-02-05 17:54:33.515139672 +0100
@@ -2992,13 +2992,17 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED
{
check_cpu_arch_compatible (string, cpu_arch[j].enable);
@@ -15,8 +15,11 @@ Index: binutils-2.44/gas/config/tc-i386.c
- as_bad (_("64bit mode not supported on `%s'."),
+ as_warn (_("64bit mode not supported on `%s' (consider swapping .arch and .code directives)."),
cpu_arch[j].name);
- goto restore_bad;
+ /*goto restore_bad;*/
- (void) restore_line_pointer (e);
+ /*(void) restore_line_pointer (e);
ignore_rest_of_line ();
- return;
+ return;*/
}
if (flag_code == CODE_32BIT && !cpu_arch[j].enable.bitfield.cpui386)

22
binutils-fix-branch.diff Normal file
View File

@@ -0,0 +1,22 @@
This is used to manually patch the bison generated files when
the binutils-X.YZ-branch.diff touches them. That diff is generated
directly from git and doesn't contain the generated .c/h files.
The base tarball does contain them, but generated from the unpatched state.
In SLE12 and older we can't regenerate them due to too old versions
of flex and bison.
So, when the branch diff _does_ touch them we need to do the regeneration
via such a manual patch.
Index: binutils-2.43/ld/ldgram.c
===================================================================
--- binutils-2.43.orig/ld/ldgram.c 2024-08-04 01:00:00.000000000 +0200
+++ binutils-2.43/ld/ldgram.c 2024-12-09 16:41:08.089715376 +0100
@@ -2839,7 +2839,7 @@ yyreduce:
case 73: /* ifile_p1: SEARCH_DIR '(' filename ')' */
#line 324 "ldgram.y"
- { ldfile_add_library_path ((yyvsp[-1].name), search_dir_linker_script); }
+ { ldfile_add_library_path ((yyvsp[-1].name), false); }
#line 2844 "ldgram.c"
break;

View File

@@ -4,23 +4,23 @@ file with symbol names. ld errors on the '@' characters. Until
those packages are fixed we use this patch. We have to carry it
for old code streams forever.
Index: binutils-2.44/binutils/nm.c
===================================================================
--- binutils-2.44.orig/binutils/nm.c 2025-03-20 17:37:37.682937888 +0100
+++ binutils-2.44/binutils/nm.c 2025-03-20 17:37:39.880974290 +0100
@@ -709,7 +709,7 @@ print_symname (const char *form, struct
if (unicode_display != unicode_default)
name = convert_utf8 (name);
diff --git a/binutils/nm.c b/binutils/nm.c
index 2637756c647..253714ef179 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -666,7 +666,7 @@ print_symname (const char *form, struct extended_symbol_info *info,
name = convert_utf8 (name);
}
- if (info != NULL && info->elfinfo && with_symbol_versions)
+ if (info != NULL && info->elfinfo && with_symbol_versions && 0)
{
const char *version_string;
bool hidden;
Index: binutils-2.44/ld/testsuite/ld-elf/pr25708.d
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-elf/pr25708.d 2025-03-20 17:37:37.682937888 +0100
+++ binutils-2.44/ld/testsuite/ld-elf/pr25708.d 2025-03-20 17:37:39.880974290 +0100
diff --git a/ld/testsuite/ld-elf/pr25708.d b/ld/testsuite/ld-elf/pr25708.d
index 60b8e31807a..1b62e25347e 100644
--- a/ld/testsuite/ld-elf/pr25708.d
+++ b/ld/testsuite/ld-elf/pr25708.d
@@ -2,8 +2,9 @@
#ld: -shared -version-script pr13195.t
#nm: -D --with-symbol-versions

View File

@@ -11,9 +11,6 @@ The changes in nop-[345].d and pr22842b.S are followups to
not break the testsuite because of this revert.
As are the changes to x86-64-branch-2.d and x86-64-branch-3.d.
For tc-i386.c reversion eventually lead to too much churn, so
this variant disables need_plt32_p instead of patching it out.
commit bd7ab16b4537788ad53521c45469a1bdae84ad4a
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 13 07:34:22 2018 -0800
@@ -82,11 +79,11 @@ Date: Tue Feb 13 07:34:22 2018 -0800
* testsuite/ld-x86-64/pr22791-2c.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/22791 tests.
Index: binutils-2.44/bfd/elf64-x86-64.c
Index: binutils-2.42/bfd/elf64-x86-64.c
===================================================================
--- binutils-2.44.orig/bfd/elf64-x86-64.c 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/bfd/elf64-x86-64.c 2025-03-20 17:19:22.421833368 +0100
@@ -2104,6 +2104,24 @@ elf_x86_64_convert_load_reloc (bfd *abfd
--- binutils-2.42.orig/bfd/elf64-x86-64.c 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/bfd/elf64-x86-64.c 2024-01-30 16:57:58.483994137 +0100
@@ -1981,6 +1981,24 @@ elf_x86_64_convert_load_reloc (bfd *abfd
return true;
}
@@ -111,7 +108,7 @@ Index: binutils-2.44/bfd/elf64-x86-64.c
/* Look through the relocs for a section during the first phase, and
calculate needed space in the global offset table, and procedure
linkage table. */
@@ -3487,9 +3505,6 @@ elf_x86_64_relocate_section (bfd *output
@@ -3337,9 +3355,6 @@ elf_x86_64_relocate_section (bfd *output
&& (eh == NULL
|| !UNDEFINED_WEAK_RESOLVED_TO_ZERO (info,
eh)))
@@ -121,7 +118,7 @@ Index: binutils-2.44/bfd/elf64-x86-64.c
|| (no_copyreloc_p
&& h->def_dynamic
&& !(h->root.u.def.section->flags & SEC_CODE))))
@@ -3498,20 +3513,25 @@ elf_x86_64_relocate_section (bfd *output
@@ -3348,20 +3363,25 @@ elf_x86_64_relocate_section (bfd *output
|| bfd_link_dll (info)))
{
bool fail = false;
@@ -151,7 +148,7 @@ Index: binutils-2.44/bfd/elf64-x86-64.c
}
else if (no_copyreloc_p || bfd_link_dll (info))
{
@@ -3520,9 +3540,10 @@ elf_x86_64_relocate_section (bfd *output
@@ -3370,9 +3390,10 @@ elf_x86_64_relocate_section (bfd *output
relocations against default and protected
symbols since address of protected function
and location of protected data may not be in
@@ -164,25 +161,102 @@ Index: binutils-2.44/bfd/elf64-x86-64.c
}
if (fail)
Index: binutils-2.44/gas/config/tc-i386.c
Index: binutils-2.42/gas/config/tc-i386.c
===================================================================
--- binutils-2.44.orig/gas/config/tc-i386.c 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/config/tc-i386.c 2025-03-20 17:28:42.296073421 +0100
@@ -11480,6 +11480,10 @@ need_plt32_p (symbolS *s)
if (s == NULL)
return false;
--- binutils-2.42.orig/gas/config/tc-i386.c 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/config/tc-i386.c 2024-01-30 16:58:57.504959847 +0100
@@ -10699,55 +10699,12 @@ output_branch (void)
frag_var (rs_machine_dependent, 5, i.reloc[0], subtype, sym, off, p);
}
+ /* Not all tools in old codestreams can deal with PLT32, similar
+ to Solaris. Disable their automatic use and stay with PC32. */
+ return false;
+
/* Weak or undefined symbol need PLT32 relocation. */
if (S_IS_WEAK (s) || !S_IS_DEFINED (s))
return true;
Index: binutils-2.44/gas/testsuite/gas/i386/ilp32/reloc64.d
-#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
-/* Return TRUE iff PLT32 relocation should be used for branching to
- symbol S. */
-
-static bool
-need_plt32_p (symbolS *s)
-{
- /* PLT32 relocation is ELF only. */
- if (!IS_ELF)
- return false;
-
-#ifdef TE_SOLARIS
- /* Don't emit PLT32 relocation on Solaris: neither native linker nor
- krtld support it. */
- return false;
-#endif
-
- /* Since there is no need to prepare for PLT branch on x86-64, we
- can generate R_X86_64_PLT32, instead of R_X86_64_PC32, which can
- be used as a marker for 32-bit PC-relative branches. */
- if (!object_64bit)
- return false;
-
- if (s == NULL)
- return false;
-
- /* Weak or undefined symbol need PLT32 relocation. */
- if (S_IS_WEAK (s) || !S_IS_DEFINED (s))
- return true;
-
- /* Non-global symbol doesn't need PLT32 relocation. */
- if (! S_IS_EXTERNAL (s))
- return false;
-
- /* Other global symbols need PLT32 relocation. NB: Symbol with
- non-default visibilities are treated as normal global symbol
- so that PLT32 relocation can be used as a marker for 32-bit
- PC-relative branches. It is useful for linker relaxation. */
- return true;
-}
-#endif
-
static void
output_jump (void)
{
char *p;
int size;
fixS *fixP;
- bfd_reloc_code_real_type jump_reloc = i.reloc[0];
if (i.tm.opcode_modifier.jump == JUMP_BYTE)
{
@@ -10821,17 +10778,8 @@ output_jump (void)
abort ();
}
-#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
- if (flag_code == CODE_64BIT && size == 4
- && jump_reloc == NO_RELOC && i.op[0].disps->X_add_number == 0
- && need_plt32_p (i.op[0].disps->X_add_symbol))
- jump_reloc = BFD_RELOC_X86_64_PLT32;
-#endif
-
- jump_reloc = reloc (size, 1, 1, jump_reloc);
-
fixP = fix_new_exp (frag_now, p - frag_now->fr_literal, size,
- i.op[0].disps, 1, jump_reloc);
+ i.op[0].disps, 1, reloc (size, 1, 1, i.reloc[0]));
/* All jumps handled here are signed, but don't unconditionally use a
signed limit check for 32 and 16 bit jumps as we want to allow wrap
@@ -15083,12 +15031,6 @@ md_estimate_size_before_relax (fragS *fr
reloc_type = (enum bfd_reloc_code_real) fragP->fr_var;
else if (size == 2)
reloc_type = BFD_RELOC_16_PCREL;
-#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
- else if (fragP->tc_frag_data.code == CODE_64BIT
- && fragP->fr_offset == 0
- && need_plt32_p (fragP->fr_symbol))
- reloc_type = BFD_RELOC_X86_64_PLT32;
-#endif
else
reloc_type = BFD_RELOC_32_PCREL;
Index: binutils-2.42/gas/testsuite/gas/i386/ilp32/reloc64.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/ilp32/reloc64.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/ilp32/reloc64.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/ilp32/reloc64.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/ilp32/reloc64.d 2024-01-30 16:57:58.487327524 +0100
@@ -17,7 +17,7 @@ Disassembly of section \.text:
.*[ ]+R_X86_64_PC8[ ]+xtrn\+0x0*1
.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4
@@ -192,10 +266,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/ilp32/reloc64.d
.*[ ]+R_X86_64_PC8[ ]+xtrn-0x0*1
.*[ ]+R_X86_64_GOT32[ ]+xtrn
.*[ ]+R_X86_64_GOT32[ ]+xtrn
Index: binutils-2.44/gas/testsuite/gas/i386/ilp32/x86-64-branch.d
Index: binutils-2.42/gas/testsuite/gas/i386/ilp32/x86-64-branch.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/ilp32/x86-64-branch.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/ilp32/x86-64-branch.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/ilp32/x86-64-branch.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/ilp32/x86-64-branch.d 2024-01-30 16:57:58.487327524 +0100
@@ -20,9 +20,9 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 66 ff 20 data16 jmp \*\(%rax\)
[ ]*[a-f0-9]+: e8 00 00 00 00 call (0x)?1f <.*> 1b: R_X86_64_PC32 \*ABS\*\+0x10003c
@@ -209,10 +283,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/ilp32/x86-64-branch.d
[ ]*[a-f0-9]+: 66 c3 data16 ret
[ ]*[a-f0-9]+: 66 c2 08 00 data16 ret \$0x8
[ ]*[a-f0-9]+: 3e 74 03[ ]+je,pt +[0-9a-fx]+ <.*>
Index: binutils-2.44/gas/testsuite/gas/i386/reloc64.d
Index: binutils-2.42/gas/testsuite/gas/i386/reloc64.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/reloc64.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/reloc64.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/reloc64.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/reloc64.d 2024-01-30 16:57:58.487327524 +0100
@@ -20,7 +20,7 @@ Disassembly of section \.text:
.*[ ]+R_X86_64_PC8[ ]+xtrn\+0x0*1
.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4
@@ -222,10 +296,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/reloc64.d
.*[ ]+R_X86_64_PC8[ ]+xtrn-0x0*1
.*[ ]+R_X86_64_GOT64[ ]+xtrn
.*[ ]+R_X86_64_GOT32[ ]+xtrn
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-branch-2.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-branch-2.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-branch-2.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-branch-2.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-branch-2.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-branch-2.d 2024-01-30 16:57:58.487327524 +0100
@@ -9,12 +9,12 @@ Disassembly of section .text:
0+ <bar-0xb>:
@@ -241,10 +315,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-branch-2.d
[ ]*[a-f0-9]+: 66 c3 retw
[ ]*[a-f0-9]+: 66 c2 08 00 retw \$0x8
#pass
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-jump.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-jump.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-jump.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-jump.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-jump.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-jump.d 2024-01-30 16:57:58.487327524 +0100
@@ -9,7 +9,7 @@ Disassembly of section .text:
0+ <.text>:
@@ -263,10 +337,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-jump.d
[ ]*[a-f0-9]+: ff 14 25 00 00 00 00 call \*0x0 3d: R_X86_64_32S xxx
[ ]*[a-f0-9]+: ff d7 call \*%rdi
[ ]*[a-f0-9]+: ff 17 call \*\(%rdi\)
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-3.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-3.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-nop-3.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-3.d 2025-03-20 17:19:22.423833400 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-nop-3.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-3.d 2024-01-30 16:57:58.487327524 +0100
@@ -18,5 +18,5 @@ Disassembly of section .text:
Disassembly of section .altinstr_replacement:
@@ -274,10 +348,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-3.d
- +[a-f0-9]+: e9 00 00 00 00 jmp 5 <_start\+0x5> 1: R_X86_64_PLT32 foo-0x4
+ +[a-f0-9]+: e9 00 00 00 00 jmp 5 <_start\+0x5> 1: R_X86_64_PC32 foo-0x4
#pass
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-4.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-4.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-nop-4.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-4.d 2025-03-20 17:19:22.424833417 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-nop-4.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-4.d 2024-01-30 16:57:58.487327524 +0100
@@ -21,5 +21,5 @@ Disassembly of section .altinstr_replace
+[a-f0-9]+: 89 c0 mov %eax,%eax
+[a-f0-9]+: 89 c0 mov %eax,%eax
@@ -285,10 +359,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-4.d
- +[a-f0-9]+: e9 00 00 00 00 jmp b <_start\+0xb> 7: R_X86_64_PLT32 foo-0x4
+ +[a-f0-9]+: e9 00 00 00 00 jmp b <_start\+0xb> 7: R_X86_64_PC32 foo-0x4
#pass
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-5.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-5.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-nop-5.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-5.d 2025-03-20 17:19:22.424833417 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-nop-5.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-nop-5.d 2024-01-30 16:57:58.487327524 +0100
@@ -24,5 +24,5 @@ Disassembly of section .altinstr_replace
+[a-f0-9]+: 89 c0 mov %eax,%eax
+[a-f0-9]+: 89 c0 mov %eax,%eax
@@ -296,10 +370,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-nop-5.d
- +[a-f0-9]+: e9 00 00 00 00 jmp d <_start\+0xd> 9: R_X86_64_PLT32 foo-0x4
+ +[a-f0-9]+: e9 00 00 00 00 jmp d <_start\+0xd> 9: R_X86_64_PC32 foo-0x4
#pass
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-2.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-relax-2.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-relax-2.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-2.d 2025-03-20 17:19:22.424833417 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-relax-2.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-relax-2.d 2024-01-30 16:57:58.487327524 +0100
@@ -11,12 +11,12 @@ Disassembly of section .text:
0+ <foo>:
[ ]*[a-f0-9]+: eb 24 jmp 26 <local>
@@ -318,10 +392,10 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-2.d
0+22 <hidden_def>:
[ ]*[a-f0-9]+: c3 ret
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-3.d
Index: binutils-2.42/gas/testsuite/gas/i386/x86-64-relax-3.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64-relax-3.d 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-3.d 2025-03-20 17:19:22.424833417 +0100
--- binutils-2.42.orig/gas/testsuite/gas/i386/x86-64-relax-3.d 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/gas/testsuite/gas/i386/x86-64-relax-3.d 2024-01-30 16:57:58.487327524 +0100
@@ -12,10 +12,10 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: eb 1b jmp 1f <hidden_def>
[ ]*[a-f0-9]+: eb 1b jmp 21 <global_def>
@@ -337,25 +411,25 @@ Index: binutils-2.44/gas/testsuite/gas/i386/x86-64-relax-3.d
0+1f <hidden_def>:
[ ]*[a-f0-9]+: c3 ret
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-1.err
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-1.err
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-1.err 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-1.err 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,2 +0,0 @@
-.*relocation R_X86_64_PC32 against symbol `foo' can not be used when making a PIE object; recompile with -fPIE
-#...
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-1a.c
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-1a.c
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-1a.c 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-1a.c 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,4 +0,0 @@
-void
-foo (void)
-{
-}
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-1b.s
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-1b.s
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-1b.s 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-1b.s 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
- .text
@@ -365,9 +439,9 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-1b.s
- movl foo(%rip), %eax
- .size main, .-main
- .section .note.GNU-stack
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2.rd
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-2.rd
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-2.rd 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-2.rd 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,6 +0,0 @@
-#failif
@@ -376,9 +450,9 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2.rd
-#...
-[0-9a-f ]+R_X86_64_NONE.*
-#...
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2a.s
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-2a.s
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-2a.s 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-2a.s 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,8 +0,0 @@
- .text
@@ -389,9 +463,9 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2a.s
- jmp bar
- .size foo, .-foo
- .section .note.GNU-stack,"",@progbits
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2b.c
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-2b.c
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-2b.c 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-2b.c 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,7 +0,0 @@
-#include <stdio.h>
@@ -401,9 +475,9 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2b.c
-{
- puts ("PASS");
-}
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2c.s
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22791-2c.s
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22791-2c.s 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22791-2c.s 2024-01-29 01:00:00.000000000 +0100
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,12 +0,0 @@
- .text
@@ -418,10 +492,10 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22791-2c.s
- ret
- .size main, .-main
- .section .note.GNU-stack,"",@progbits
Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22842b.S
Index: binutils-2.42/ld/testsuite/ld-x86-64/pr22842b.S
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/pr22842b.S 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/ld/testsuite/ld-x86-64/pr22842b.S 2025-03-20 17:19:22.424833417 +0100
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/pr22842b.S 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/ld/testsuite/ld-x86-64/pr22842b.S 2024-01-30 16:57:58.487327524 +0100
@@ -7,7 +7,7 @@ main:
leaq bar(%rip), %rdi
addq %rax, %rdi
@@ -431,11 +505,11 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/pr22842b.S
xorl %eax, %eax
popq %rcx
retq
Index: binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp
Index: binutils-2.42/ld/testsuite/ld-x86-64/x86-64.exp
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/x86-64.exp 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp 2025-03-20 17:19:22.424833417 +0100
@@ -1269,44 +1269,6 @@ if { [isnative] && [check_compiler_avail
--- binutils-2.42.orig/ld/testsuite/ld-x86-64/x86-64.exp 2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42/ld/testsuite/ld-x86-64/x86-64.exp 2024-01-30 16:57:58.487327524 +0100
@@ -1235,44 +1235,6 @@ if { [isnative] && [check_compiler_avail
"pr22393-3-static" \
] \
[list \
@@ -480,7 +554,7 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp
"Build pr22842.so" \
"-shared" \
"-fPIC -Wa,-mx86-used-note=yes" \
@@ -1804,15 +1766,6 @@ if { [isnative] && [check_compiler_avail
@@ -1762,15 +1724,6 @@ if { [isnative] && [check_compiler_avail
"pass.out" \
] \
[list \

View File

@@ -26,10 +26,10 @@ of missing support in ld.so.
proper predicate to guard themself)
Index: binutils-2.44/bfd/elf64-x86-64.c
Index: binutils-2.43/bfd/elf64-x86-64.c
===================================================================
--- binutils-2.44.orig/bfd/elf64-x86-64.c 2025-03-20 17:31:22.331723154 +0100
+++ binutils-2.44/bfd/elf64-x86-64.c 2025-03-20 17:33:11.323527737 +0100
--- binutils-2.43.orig/bfd/elf64-x86-64.c 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/bfd/elf64-x86-64.c 2024-08-06 16:48:36.554787135 +0200
@@ -48,127 +48,127 @@ static reloc_howto_type x86_64_elf_howto
bfd_elf_generic_reloc, "R_X86_64_NONE", false, 0, 0x00000000,
false),
@@ -208,9 +208,9 @@ Index: binutils-2.44/bfd/elf64-x86-64.c
false)
};
Index: binutils-2.44/gas/testsuite/gas/i386/rela.d
Index: binutils-2.43/gas/testsuite/gas/i386/rela.d
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/rela.d 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.43.orig/gas/testsuite/gas/i386/rela.d 2024-08-06 16:48:34.104745566 +0200
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,13 +0,0 @@
-#name: x86-64 rela relocs w/ non-zero relocated fields
@@ -226,9 +226,9 @@ Index: binutils-2.44/gas/testsuite/gas/i386/rela.d
-
-Contents of section .data:
- 0+0 11 ?11 ?11 ?11 22 ?22 ?22 ?22 33 ?33 ?33 ?33 44 ?44 ?44 ?44 .*
Index: binutils-2.44/gas/testsuite/gas/i386/rela.s
Index: binutils-2.43/gas/testsuite/gas/i386/rela.s
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/rela.s 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.43.orig/gas/testsuite/gas/i386/rela.s 2024-08-06 16:48:34.104745566 +0200
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,14 +0,0 @@
-# Note: This file is also used by an ld test case.
@@ -245,14 +245,14 @@ Index: binutils-2.44/gas/testsuite/gas/i386/rela.s
-
- .reloc l, BFD_RELOC_64, q
- .reloc q, BFD_RELOC_32, l
Index: binutils-2.44/ld/testsuite/ld-x86-64/rela.d
Index: binutils-2.43/ld/testsuite/ld-x86-64/rela.d
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/rela.d 2025-02-02 01:00:00.000000000 +0100
--- binutils-2.43.orig/ld/testsuite/ld-x86-64/rela.d 2024-08-06 16:48:34.104745566 +0200
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,10 +0,0 @@
-#name: x86-64 rela relocs w/ non-zero relocated fields
-#as: --64
-#source: ../../../gas/testsuite/gas/i386/rela.s
-#source: ${srcdir}/../../../gas/testsuite/gas/i386/rela.s
-#ld: -melf_x86_64
-#objdump: -sj .data
-
@@ -260,10 +260,10 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/rela.d
-
-Contents of section .data:
- *[0-9a-f]*0 .8 ?.. ?.. ?.. 00 ?00 ?00 ?00 .0 ?.. ?.. ?.. 44 ?44 ?44 ?44 .*
Index: binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp
Index: binutils-2.43/ld/testsuite/ld-x86-64/x86-64.exp
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-x86-64/x86-64.exp 2025-03-20 17:19:22.424833417 +0100
+++ binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp 2025-03-20 17:33:11.323527737 +0100
--- binutils-2.43.orig/ld/testsuite/ld-x86-64/x86-64.exp 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/ld/testsuite/ld-x86-64/x86-64.exp 2024-08-06 16:48:36.554787135 +0200
@@ -309,7 +309,6 @@ run_dump_test "apic"
run_dump_test "pcrel8"
run_dump_test "pcrel16"
@@ -272,7 +272,7 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp
run_dump_test "tlsgd2"
run_dump_test "tlsgd3"
run_dump_test "tlsgd12"
@@ -525,10 +524,10 @@ run_dump_test "pr27491-1c"
@@ -524,10 +523,10 @@ run_dump_test "pr27491-1c"
run_dump_test "pr27491-2"
run_dump_test "pr27491-3"
run_dump_test "pr27491-4"
@@ -287,11 +287,11 @@ Index: binutils-2.44/ld/testsuite/ld-x86-64/x86-64.exp
run_dump_test "pr30787"
run_dump_test "pr31047"
run_dump_test "pr31047-x32"
Index: binutils-2.44/binutils/testsuite/lib/binutils-common.exp
Index: binutils-2.43/binutils/testsuite/lib/binutils-common.exp
===================================================================
--- binutils-2.44.orig/binutils/testsuite/lib/binutils-common.exp 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/binutils/testsuite/lib/binutils-common.exp 2025-03-20 17:33:11.324527753 +0100
@@ -468,6 +468,8 @@ proc supports_persistent_section {} {
--- binutils-2.43.orig/binutils/testsuite/lib/binutils-common.exp 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/binutils/testsuite/lib/binutils-common.exp 2024-08-06 16:48:36.554787135 +0200
@@ -470,6 +470,8 @@ proc supports_persistent_section {} {
# Whether a target support DT_RELR sections.
proc supports_dt_relr {} {
@@ -300,10 +300,10 @@ Index: binutils-2.44/binutils/testsuite/lib/binutils-common.exp
if { ([istarget x86_64-*-*]
|| [istarget i?86-*-*]
|| [istarget powerpc64*-*-*]
Index: binutils-2.44/ld/emulparams/dt-relr.sh
Index: binutils-2.43/ld/emulparams/dt-relr.sh
===================================================================
--- binutils-2.44.orig/ld/emulparams/dt-relr.sh 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/ld/emulparams/dt-relr.sh 2025-03-20 17:33:11.324527753 +0100
--- binutils-2.43.orig/ld/emulparams/dt-relr.sh 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/ld/emulparams/dt-relr.sh 2024-08-06 16:48:36.554787135 +0200
@@ -1,3 +1,8 @@
+if false; then
+ # on old codestreams we don't have the DT_RELR support in the dynamic
@@ -319,11 +319,11 @@ Index: binutils-2.44/ld/emulparams/dt-relr.sh
PARSE_AND_LIST_ARGS_CASE_Z="$PARSE_AND_LIST_ARGS_CASE_Z $PARSE_AND_LIST_ARGS_CASE_Z_PACK_RELATIVE_RELOCS"
+
+fi
Index: binutils-2.44/ld/testsuite/ld-i386/i386.exp
Index: binutils-2.43/ld/testsuite/ld-i386/i386.exp
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-i386/i386.exp 2025-03-20 17:13:59.425540305 +0100
+++ binutils-2.44/ld/testsuite/ld-i386/i386.exp 2025-03-20 17:33:11.324527753 +0100
@@ -508,8 +508,8 @@ run_dump_test "pr27491-1c"
--- binutils-2.43.orig/ld/testsuite/ld-i386/i386.exp 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/ld/testsuite/ld-i386/i386.exp 2024-08-06 16:48:36.554787135 +0200
@@ -507,8 +507,8 @@ run_dump_test "pr27491-1c"
run_dump_test "pr27491-2"
run_dump_test "pr27491-3"
run_dump_test "pr27491-4"
@@ -334,10 +334,10 @@ Index: binutils-2.44/ld/testsuite/ld-i386/i386.exp
run_dump_test "pr28870"
run_dump_test "pr28894"
run_dump_test "pr30787"
Index: binutils-2.44/ld/testsuite/ld-powerpc/powerpc.exp
Index: binutils-2.43/ld/testsuite/ld-powerpc/powerpc.exp
===================================================================
--- binutils-2.44.orig/ld/testsuite/ld-powerpc/powerpc.exp 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/ld/testsuite/ld-powerpc/powerpc.exp 2025-03-20 17:33:11.324527753 +0100
--- binutils-2.43.orig/ld/testsuite/ld-powerpc/powerpc.exp 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/ld/testsuite/ld-powerpc/powerpc.exp 2024-08-06 16:48:36.554787135 +0200
@@ -378,14 +378,14 @@ set ppc64elftests {
"-a64" {abs-reloc.s}
{{objdump {-sdr} abs-shared.d}
@@ -361,12 +361,12 @@ Index: binutils-2.44/ld/testsuite/ld-powerpc/powerpc.exp
}
set ppceabitests {
Index: binutils-2.44/gas/testsuite/gas/i386/x86-64.exp
Index: binutils-2.43/gas/testsuite/gas/i386/x86-64.exp
===================================================================
--- binutils-2.44.orig/gas/testsuite/gas/i386/x86-64.exp 2025-02-02 01:00:00.000000000 +0100
+++ binutils-2.44/gas/testsuite/gas/i386/x86-64.exp 2025-03-20 17:33:11.324527753 +0100
@@ -708,7 +708,6 @@ if [is_elf_format] then {
run_dump_test "x86-64-tls"
--- binutils-2.43.orig/gas/testsuite/gas/i386/x86-64.exp 2024-08-06 16:48:34.104745566 +0200
+++ binutils-2.43/gas/testsuite/gas/i386/x86-64.exp 2024-08-06 16:48:36.554787135 +0200
@@ -653,7 +653,6 @@ if [is_elf_format] then {
run_list_test "reloc64" "--defsym _bad_=1"
run_list_test "x86-64-inval-tls"
run_dump_test "mixed-mode-reloc64"
- run_dump_test "rela"

View File

@@ -1,35 +1,8 @@
-------------------------------------------------------------------
Mon Mar 24 16:13:02 UTC 2025 - Michael Matz <matz@suse.com>
Tue May 6 14:33:48 UTC 2025 - Michael Matz <matz@suse.com>
- Update to current 2.44:
* riscv - disassembly now supports -M,max
* nios2 - support dropped except in readelf
* assembler:
- x86: add support for AMX-AVX512, AMX-FP8, AMX-MOVRS, AMX-TF32
and AMX-TRANSPOSE, MOVRS, PHE2, RNG2, GMI, MSR_IMM instructions
- x86: add support for Intel AVX10.2 and SM4 AVX10.2 extensions
- aarch64: SME and SVE non-widening BFloat16 instructions
- riscv: various standard and vendor extensions added:
Zicfiss v1.0, Zicfilp v1.0, Zcmp v1.0, Zcmt v1.0,
Smrnmi v1.0, S[sm]dbltrp v1.0 and S[sm]ctr v1.0;
CORE-V: xcvbitmanip v1.0 and xcvsimd v1.0;
SiFive: xsfvqmaccdod v1.0, xsfvqmaccqoqv1.0 and xsfvfnrclipxfqf v1.0
* linker:
- loongarch: changed default max page size from 16KiB to 64KiB
- add support for mixed LTO and non-LTO code in relocatable output
- add --image-base=<ADDR> to behave like -Ttext-segment for
compatibility with LLD
- Accept percent-encoded and %[string] encoded JSON payload
with --package-metadata
- binutils-gold is gone for good
- remove support for our unsupported architectures from the enterprise
codestreams (alpha, avr, pru, epiphany, hppa, ia64, m68k, mips, rx, sh4
sparc, xtensa)
-------------------------------------------------------------------
Thu Feb 13 09:39:06 UTC 2025 - Richard Biener <rguenther@suse.com>
- Do not build binutils-gold for openSUSE Factory or SLFO.
- Add -std=gnu17 to move gcc15 forward, as temporary measure until
the binutils version can be updated [bsc#1241916].
-------------------------------------------------------------------
Fri Jan 10 08:54:55 UTC 2025 - JS <obs.coke518@passinbox.com>

View File

@@ -64,7 +64,7 @@ BuildRequires: zlib-devel
%if %{suse_version} > 1500
BuildRequires: libzstd-devel
%endif
Version: 2.44
Version: 2.43
Release: 0
# disable libalternatives for now until it's changed to not
@@ -104,14 +104,7 @@ Release: 0
%else
%define build_multitarget 0
%endif
# for enterprise codestreams we definitely want to have a limited
# list of architectures enabled
%if 0%{?is_opensuse}
%define target_list aarch64 alpha armv5l armv6l armv7l armv8l avr pru epiphany hppa hppa64 i686 ia64 loongarch64 m68k mips powerpc powerpc64 powerpc64le riscv64 rx s390 s390x sh4 sparc sparc64 x86_64 xtensa
%else
%define target_list aarch64 armv5l armv6l armv7l armv8l i686 loongarch64 powerpc powerpc64 powerpc64le riscv64 s390 s390x x86_64
%endif
%define build_gprofng 0
@@ -138,12 +131,14 @@ Source: binutils-%{version}.tar.bz2
Source2: binutils-%{version}.tar.bz2.sig
Source3: binutils.keyring
Source4: baselibs.conf
Patch1: binutils-2.44-branch.diff.gz
Patch1: binutils-2.43-branch.diff.gz
Patch2: binutils-fix-branch.diff
Patch3: binutils-skip-rpaths.patch
Patch4: s390-biarch.diff
Patch5: x86-64-biarch.patch
Patch6: unit-at-a-time.patch
Patch9: testsuite.diff
Patch10: enable-targets-gold.diff
Patch12: s390-pic-dso.diff
Patch14: binutils-build-as-needed.diff
Patch15: binutils-znow.patch
@@ -183,7 +178,7 @@ Requires: alts
%else
PreReq: update-alternatives
%endif
%if 0 && 0%{!?cross:1} && 0%{?suse_version} < 1600
%if 0%{!?cross:1} && 0%{?suse_version} >= 1310
%define gold_archs %ix86 aarch64 %arm x86_64 %x86_64 ppc ppc64 ppc64le s390x %sparc
%endif
@@ -253,8 +248,9 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
# Patch is outside test_vanilla because it's supposed to be the
# patch bringing the tarball to the newest upstream version
%patch -P 1 -p1
%patch -P 2 -p1
# Backup flex and bison files for later verification. Do this
# Backup flex and biscon files for later verification. Do this
# after branch and fix-branch patches are applied (which are assumed
# to manual fixup generated files, in case the branch diff touches
# the flex/bison source files)
@@ -267,6 +263,7 @@ cp ld/ldgram.y ld/ldgram.y.orig
%patch -P 5
%patch -P 6
%patch -P 9
%patch -P 10
%patch -P 12
%patch -P 14
%patch -P 15
@@ -305,12 +302,20 @@ diff -u ld/ldgram.y ld/ldgram.y.orig
sed -i -e '/BFD_VERSION_DATE/s/$/-%(echo %release | sed 's/\.[0-9]*$//')/' bfd/version.h
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
# gcc15 and up default to c23, these older binutils would need patches
# for that. As an impeding version update fixes that as well, simply
# override the compiler instead of bothering with backports
%if %{suse_version} > 1600
CC="gcc -std=gnu17"
export CC
%endif
%if 0%{!?cross:1}
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
EXTRA_TARGETS="%(printf ,%%s-suse-linux %target_list)"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,x86_64-pep,bpf-none"
EXTRA_TARGETS="$EXTRA_TARGETS,powerpc-macos,powerpc-macos10,spu-elf,x86_64-pep,bpf-none"
%else
EXTRA_TARGETS=
%ifarch sparc
@@ -328,6 +333,9 @@ EXTRA_TARGETS="$EXTRA_TARGETS,s390-suse-linux"
%ifarch %ix86
EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux"
%endif
%ifarch ppc ppc64 ppc64le
EXTRA_TARGETS="$EXTRA_TARGETS,spu-elf"
%endif
%ifarch %arm
EXTRA_TARGETS="$EXTRA_TARGETS,arm-suse-linux-gnueabi"
%endif
@@ -348,7 +356,7 @@ EXTRA_TARGETS="$EXTRA_TARGETS,aarch64-suse-linux"
# as they are not enabled by default for some targets (and we use --enable-targets=[many]).
%define common_flags CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" \\\
--prefix=%{_prefix} --libdir=%{_libdir} \\\
--infodir=%{_infodir} --mandir=%{_mandir} --docdir=%{_docdir} \\\
--infodir=%{_infodir} --mandir=%{_mandir} \\\
--with-bugurl=https://bugs.opensuse.org/ \\\
--with-pkgversion="GNU Binutils; %{DIST}" \\\
--with-separate-debug-dir=%{_prefix}/lib/debug \\\
@@ -747,7 +755,6 @@ fi;
%dir %{_libdir}/gprofng/
%{_libdir}/gprofng/lib*.so
%{_distconfdir}/gprofng.rc
%{_docdir}/gprofng
%endif
%endif

14
enable-targets-gold.diff Normal file
View File

@@ -0,0 +1,14 @@
Index: gold/configure
===================================================================
--- gold/configure.orig 2018-07-16 09:55:04.675278145 +0200
+++ gold/configure 2018-07-16 09:55:36.007836031 +0200
@@ -5180,7 +5180,8 @@ for targ in $target $canon_targets; do
. ${srcdir}/configure.tgt
if test "$targ_obj" = "UNKNOWN"; then
- as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"unsupported target $targ\"" >&5
+ $as_echo "$as_me: WARNING: \"unsupported target $targ\"" >&2;}
else
targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
if test "$targ_extra_obj" != ""; then