Commit Graph

760 Commits

Author SHA1 Message Date
Nick Clifton
120fff5df5 Use correct fix for CVE-2025-5702.
Resolves: RHEL-100159
2025-06-30 18:31:53 +01:00
Nick Clifton
d8eb7cfbb1 Add fix for CVE-2025-5244.
Resolves: RHEL-100417
2025-06-30 17:26:38 +01:00
Andrea Bolognani
bdd2637ad2 Add basic support for RISC-V 64-bit EFI objects
Using current binutils, attempting to build shim eventually
results in the following failure:

  objcopy -D -j .text -j .sdata -j .data -j .data.ident \
          -j .dynamic -j .rodata -j .rel* \
          -j .rela* -j .dyn -j .reloc -j .eh_frame \
          -j .vendor_cert -j .sbat -j .sbatlevel \
          --target efi-app-riscv64 shimriscv64.so shimriscv64.efi
  objcopy: shimriscv64.so: invalid bfd target
  make: *** [Makefile:269: shimriscv64.efi] Error 1

Address the problem by backporting two upstream commits:

  1b183017aa2f (Add basic support for RISC-V 64-bit EFI objects)
  c53b543736cd (Handle "efi-app-riscv64" and similar targets in objcopy.)

With these changes, shim can be successfully built on riscv64.

Resolves: RHEL-88815

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-04-29 10:05:15 +02:00
nick clifton
5fe8bd3bf2 Merge branch binutils:c10s into c10s 2025-04-15 14:37:19 +00:00
Nick Clifton
c9d315d849 Adds z17 as a cpu name for the s390x architecture.
Resolves: RHEL-87215
2025-04-15 15:36:10 +01:00
Andrea Bolognani
5e3027f14b Further clean up BuildRequires
Earlier commit 6171205299 has made the BuildRequires on
bison unconditional, but failed to remove one remaining
instance which was intended specifically for gprofng and is
clearly no longer necessary. Finish cleaning things up.

Related: RHEL-85855

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-04-09 21:20:09 +02:00
Andrea Bolognani
e9b11ea24b Fix RISC-V ld testsuite failures
The changes are the same as in Fedora commit a8edbcb25591
except adapted to work for the older version of binutils
used in RHEL.

Resolves: RHEL-85855

Thanks: Nick Clifton <nickc@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-04-02 18:47:49 +02:00
Andrea Bolognani
6171205299 Fix BuildRequires for non-gold architectures
bison is only brought in for gold architectures right now, but
non-gold architectures need it too. Make the dependency
unconditional, which makes it possible to build on riscv64.

While at it, clean up a few related things.

A BuildRequires on gcc-c++ already exists a few lines below
for the non-clang case, and obviously we don't need it when
building with clang.

m4 is not used directly by us, but rather by bison. Luckily
the bison package correctly depends on m4, so we don't need
to bring it in ourselves.

Resolves: RHEL-85855

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-04-02 18:47:13 +02:00
Andrea Bolognani
dff9bfc5c8 Update comment for enable_separate_code
The value was changed in b2f9df48ed but the comment did
not get updated accordingly.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-03-21 16:18:29 +01:00
Nick Clifton
eedb416ce6 Fix seg-fault in AArch64 linker when building u-boot.
Resolves: RHEL-78233
2025-02-07 12:38:32 +00:00
Nick Clifton
3b3a0747c9 Add support for more Intel APX relocs.
Resolves: RHEL-74437
2025-01-20 11:51:54 +00:00
Nick Clifton
1e771b68f5 Fix AArch64 linker testsuite problems.
Resolves: RHEL-56896
2024-12-02 19:37:20 +00:00
Nick Clifton
61d08a2c4f Extend support for the arch14 and arch15 extensions to the s390 architecture.
Resolves: RHEL-56896
2024-11-18 13:19:18 +00:00
Nick Clifton
3158ee0936 Add support for the arch14 and arch15 extensions to the s390 architecture.
Resolves: RHEL-56896
2024-11-13 10:08:42 +00:00
Troy Dawson
309f259705 Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 08:16:43 -07:00
Nick Clifton
69966ae21e Restore LTO use when building binutils.
Resolves: RHEL-53215
2024-08-08 10:23:06 +01:00
Nick Clifton
c787dc68a0 Temporary workaround for ppc64 gcc compilation bug.
Resolves: RHEL-49348
2024-07-30 20:43:12 +01:00
Nick Clifton
a322480a6a Correct the changelog.
Resolves: RHEL-44713
2024-07-08 17:01:20 +01:00
Nick Clifton
04939418b6 Import fix for AArch64 DT_RELR support (PR 31924).
Resolves: RHEL-31846
2024-07-03 12:02:05 +01:00
Nick Clifton
b44dd57ea1 More fixes for Intel's APX (part 1) extensions.
Resolves: RHEL-44713
2024-07-02 12:56:41 +01:00
Nick Clifton
dbdaab8874 Fix building with documentation disabled.
Resolves: RHEL-44615
2024-06-24 12:53:55 +01:00
Nick Clifton
b2f9df48ed Do not enable '-z separate code' by default - allow packages to choose to do it. Add fix for discarded section counting for AArcch64 DT_RELR relocs.
Resolves: RHEL-42765
2024-06-17 17:18:14 +01:00
Nick Clifton
52b082c2f5 Add --rosegment option to BFD linker. 2024-06-13 17:14:07 +01:00
Nick Clifton
a1b3c25c07 Add support for RELR relocs to the AArch64 target.
Resolves: RHEL-31846
2024-05-31 13:18:28 +01:00
Nick Clifton
e842944e76 Suppress gas comment test.
Resolves: RHEL-19865
2024-05-29 12:49:37 +01:00
Nick Clifton
4928c05a15 Fix execstack error patch.
Resolves: RHEL-19865
2024-05-28 15:51:39 +01:00
Nick Clifton
170f9fd6d1 Add section-ordering patch to bfd linker.
Resolves: RHEL-36305
2024-05-20 12:26:58 +01:00
Nick Clifton
983effec90 Add section-ordering patch to bfd linker.
Resolves: PTG-287
2024-05-13 15:28:05 +00:00
Nick Clifton
ab727ba6ce Fix verification of ld.bfd installation.
Resolves: RHEL-30887
2024-04-02 13:55:34 +01:00
Nick Clifton
69b0093bda Enable cross builds on x86_64 host.
Resolves: RHEL-27750
2024-03-20 13:41:39 +00:00
Nick Clifton
9c215c98e9 Backport commits 5a635f1f59ad and 41e115853eef to fix some APX issues.
Add top-level multilib.am file.
Backport commit 4199cf1e152d in order to add support for IBM's power-11 architecture extensions.
2024-02-15 20:01:04 +00:00
Nick Clifton
d43bbe0fb5 Suppress the x86 linker's p_align-1 tests in order to cope with a CentOS-10 kernel bug. (RHEL-22466) 2024-01-25 09:43:00 +00:00
Fedora Release Engineering
c1cad428e0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 00:24:17 +00:00
Nick Clifton
a5425af175 Import commits 4a54cb06585f568031dfd291d0fe45979ad75e98 and 00a17c6ad068c95019e1f37cfc2d1b8aaebd6ecb to add APX support to GOLD. 2024-01-22 12:19:17 +00:00
Jakub Jelinek
5132280190 - Import commit eed38d8a02b2 to update APX support. (#2259333) 2024-01-20 20:51:49 +01:00
Nick Clifton
f7f7b9f944 Import commits 5190fa38286a , 2519809009ed and eea4357967b6 to update APX support. 2024-01-19 13:07:14 +00:00
Nick Clifton
4c25ffdf16 Add support for Intel's APX (part 1) architecture extensions. 2024-01-18 19:45:11 +00:00
Nick Clifton
508b3ee556 Import libiberty demangling improvements in order to support gcc v14 mangling. 2024-01-17 11:51:01 +00:00
Nick Clifton
7206b7ef95 Fix creation of DT_RELR relocs for PPC64LE. 2024-01-16 16:24:47 +00:00
Nick Clifton
6ab5c9d778 Use _fortify_level macro to control _FORTIFY_SOURCE. 2024-01-11 14:32:55 +00:00
Nick Clifton
4a2b1583b0 Update version 2024-01-11 12:31:38 +00:00
Nick Clifton
b30ba09c72 Spec File: gprofng requires bison at build time 2024-01-11 12:30:06 +00:00
Nicholas Clifton
9331510b79 Merge #48 Spec File: use dist_bug_report_url for configure parameters 2024-01-11 11:15:54 +00:00
Nick Clifton
f7ce37e465 Remove dependency upon zlib-static. 2024-01-11 10:54:05 +00:00
Yaakov Selkowitz
173d8ce283 Fix location of gprofng.rc
/usr/etc does not conform to our packaging guidelines, which are based
on the Filesystem Hierarchy Standard.
2024-01-04 15:16:04 -05:00
Nick Clifton
62f9165a13 Fix SPDX annotation 2024-01-04 15:31:11 +00:00
Nick Clifton
8f1ba5b061 Have the gold linker ignore the --error-execstack and --error-rwx-segments options. 2024-01-04 10:56:42 +00:00
Nick Clifton
05f5ab6f6f Use builtin zlib library (system version has conflicts) 2024-01-03 17:40:13 +00:00
Nick Clifton
3b7f3a5c52 Fix handling of Risc-V SUB_LEB128 relocation. (PR31179) 2024-01-03 16:45:04 +00:00
Nick Clifton
4196d43202 Fix (more) testsuite failures for the RiscV target. 2023-12-13 14:08:58 +00:00