diff --git a/binutils-aarch64-RELR.patch b/binutils-aarch64-RELR.patch index c989d62..e81325e 100644 --- a/binutils-aarch64-RELR.patch +++ b/binutils-aarch64-RELR.patch @@ -3446,3 +3446,77 @@ Only in binutils-2.41/ld/testsuite/ld-aarch64: relr-discard.s return _bfd_final_link_relocate (howto, input_bfd, input_section, contents, rel->r_offset, value, signed_addend); +diff -rup binutils.orig/ld/testsuite/ld-aarch64/relr-align.d binutils-2.41/ld/testsuite/ld-aarch64/relr-align.d +--- binutils.orig/ld/testsuite/ld-aarch64/relr-align.d 2024-12-02 18:36:21.957480121 +0000 ++++ binutils-2.41/ld/testsuite/ld-aarch64/relr-align.d 2024-12-02 18:37:32.142592796 +0000 +@@ -2,13 +2,13 @@ + #ld: -shared -z pack-relative-relocs -T relocs.ld + #readelf: -rW + +-Relocation section '\.rela\.dyn' at offset 0x10090 contains 3 entries: ++Relocation section '\.rela\.dyn' at offset 0x100.. contains 3 entries: + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000012340011 0000000000000403 R_AARCH64_RELATIVE 10000 + 0000000012340019 0000000000000403 R_AARCH64_RELATIVE 10000 + 0000000012340041 0000000000000403 R_AARCH64_RELATIVE 10000 + +-Relocation section '\.relr\.dyn' at offset 0x100d8 contains 9 entries which relocate 10 locations: ++Relocation section '\.relr\.dyn' at offset 0x100.. contains 9 entries which relocate 10 locations: + Index: Entry Address Symbolic Address + 0000: 0000000012340000 0000000012340000 double_0 + 0001: 0000000000000003 0000000012340008 double_0 \+ 0x8 +diff -rup binutils.orig/ld/testsuite/ld-aarch64/relr-data-shared.d binutils-2.41/ld/testsuite/ld-aarch64/relr-data-shared.d +--- binutils.orig/ld/testsuite/ld-aarch64/relr-data-shared.d 2024-12-02 18:36:21.957480121 +0000 ++++ binutils-2.41/ld/testsuite/ld-aarch64/relr-data-shared.d 2024-12-02 18:37:58.702635434 +0000 +@@ -2,7 +2,7 @@ + #ld: -shared -z pack-relative-relocs -T relocs.ld + #readelf: -rW + +-Relocation section '\.rela\.dyn' at offset 0x10150 contains 6 entries: ++Relocation section '\.rela\.dyn' at offset 0x101.. contains 6 entries: + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000012340000 0000000000000403 R_AARCH64_RELATIVE 10004 + 0000000012340008 0000000000000403 R_AARCH64_RELATIVE 10008 +@@ -11,7 +11,7 @@ Relocation section '\.rela\.dyn' at offs + 0000000012340030 0000000400000101 R_AARCH64_ABS64 000000000001000c sym_global \+ 0 + 0000000012340040 0000000300000101 R_AARCH64_ABS64 0000000000000000 sym_weak_undef \+ 0 + +-Relocation section '\.relr\.dyn' at offset 0x101e0 contains 2 entries which relocate 3 locations: ++Relocation section '\.relr\.dyn' at offset 0x101.. contains 2 entries which relocate 3 locations: + Index: Entry Address Symbolic Address + 0000: 0000000012340020 0000000012340020 aligned_local + 0001: 0000000000000023 0000000012340028 aligned_hidden +diff -rup binutils.orig/ld/testsuite/ld-aarch64/relr-got-shared.d binutils-2.41/ld/testsuite/ld-aarch64/relr-got-shared.d +--- binutils.orig/ld/testsuite/ld-aarch64/relr-got-shared.d 2024-12-02 18:36:21.957480121 +0000 ++++ binutils-2.41/ld/testsuite/ld-aarch64/relr-got-shared.d 2024-12-02 18:38:21.422671912 +0000 +@@ -2,13 +2,13 @@ + #ld: -shared -z pack-relative-relocs -T relocs.ld + #readelf: -rW + +-Relocation section '\.rela\.dyn' at offset 0x10168 contains 3 entries: ++Relocation section '\.rela\.dyn' at offset 0x101.. contains 3 entries: + Offset Info Type Symbol's Value Symbol's Name \+ Addend + 0000000000020020 0000000300000401 R_AARCH64_GLOB_DAT 0000000000010038 sym_global \+ 0 + 0000000000020028 0000000500000401 R_AARCH64_GLOB_DAT 000000000000002a sym_global_abs \+ 0 + 0000000000020030 0000000200000401 R_AARCH64_GLOB_DAT 0000000000000000 sym_weak_undef \+ 0 + +-Relocation section '\.relr\.dyn' at offset 0x101b0 contains 2 entries which relocate 3 locations: ++Relocation section '\.relr\.dyn' at offset 0x101.. contains 2 entries which relocate 3 locations: + Index: Entry Address Symbolic Address + 0000: 0000000000020008 0000000000020008 _GLOBAL_OFFSET_TABLE_ \+ 0x8 + 0001: 0000000000000007 0000000000020010 _GLOBAL_OFFSET_TABLE_ \+ 0x10 +--- binutils.orig/ld/testsuite/ld-aarch64/relr-text-shared.d 2024-12-02 18:36:21.957480121 +0000 ++++ binutils-2.41/ld/testsuite/ld-aarch64/relr-text-shared.d 2024-12-02 19:05:37.138237202 +0000 +@@ -5,10 +5,10 @@ + #... + 0x0000000000000016 \(TEXTREL\) 0x0 + #... +- 0x0000000000000024 \(RELR\) 0x10098 ++ 0x0000000000000024 \(RELR\) 0x100.. + 0x0000000000000023 \(RELRSZ\) 8 \(bytes\) + 0x0000000000000025 \(RELRENT\) 8 \(bytes\) + #... +-Relocation section '.relr.dyn' at offset 0x10098 contains 1 entry which relocates 1 location: ++Relocation section '.relr.dyn' at offset 0x100.. contains 1 entry which relocates 1 location: + Index: Entry Address Symbolic Address + 0000: 0000000000010000 0000000000010000 _start diff --git a/binutils.spec b/binutils.spec index ee4d61c..07da88f 100644 --- a/binutils.spec +++ b/binutils.spec @@ -2,7 +2,7 @@ Summary: A GNU collection of binary utilities Name: binutils%{?_with_debug:-debug} Version: 2.41 -Release: 50%{?dist} +Release: 51%{?dist} License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later URL: https://sourceware.org/binutils @@ -1408,6 +1408,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Mon Dec 02 2024 Nick Clifton - 2.41-51 +- Fix AArch64 linker testsuite problems. + * Mon Nov 18 2024 Nick Clifton - 2.41-50 - Extend support for the arch14 and arch15 extensions to the s390 architecture. (RHEL-56896)