Commit Graph

664 Commits

Author SHA1 Message Date
Nick Clifton
90f5896dac Rebase to GNU Binutils 2.37.
- Retire: binutils-2.36-branch-updates.patch
- Retire: binutils-CVE-2021-20197.patch
- Retire: binutils-CVE-2021-3530.patch
- Retire: binutils-plugin-file-descriptors.patch
- Retire: binutils-ppc-weak-undefined-plt-relocs.patch
- Retire: binutils-ppc64le-note-merge.patch
- Retire: binutils-s390-arch14-insns.patch
2021-07-19 17:07:20 +01:00
Nick Clifton
fba59c4283 Enable the creation of .note.gnu.property sections by the GOLD linker for x86 binaries. (#1970961) 2021-06-21 18:02:11 +01:00
Nick Clifton
fb7c644d99 Set clang bconf default based on %%toolchain.
Diable LTO when using clang.
Disable check-rpath's test for standard runpaths.
Make the existing tests have the gating effect.
2021-06-03 15:01:45 +01:00
Nick Clifton
3ebde0f76b Remove spurious spaces from binutils.spec 2021-05-27 13:06:57 +01:00
Nick Clifton
a4b106ec38 Increase number of file descriptors available to plugins. (#1918924)
Remove uses of RPATH.
2021-05-27 10:44:25 +01:00
Nick Clifton
2680508b04 Spec file tidy ups 2021-05-21 10:32:35 +01:00
Nick Clifton
fc998ec612 Generate PLT relocs for weak undefined PPC function symbols.
Resolves: #1960730
2021-05-18 12:50:19 +01:00
Nick Clifton
616b9e8e44 Enable new dtags 2021-05-13 12:07:17 +01:00
Timm Bäder
117b4ee5c2 spec: Consistently use %set_build_flags
So we can always refer to CFLAGS and LDFLAGS instead of swithing between
them and the RPM_ equivalent.
2021-05-08 10:42:18 +02:00
Timm Bäder
5e669f0402 Remove unnecessary parameters from make macros
%make_build already passes %{_smp_mflags) and %make_install passes
DESTDIR=%{buildroot}
2021-05-08 10:01:11 +02:00
Nick Clifton
2c147eaf06 Stop stack exhaustion when demangling corrupt rust names.
Resolves: #1956424
2021-05-07 17:42:52 +01:00
Nick Clifton
7453caeb33 Add an explicit dependency upon autoconf 2.69.
Resolves: #1942991
2021-03-25 13:39:49 +00:00
Nick Clifton
ac55f50329 Extend vulnerability fix yet again.
Resolves: #1925779
2021-03-11 14:30:48 +00:00
Nick Clifton
0b119dd9d5 Unretire the CVE 2021-20197 patch.
Fix merging ppc64le notes (again).  (#1928936)
2021-02-22 16:49:04 +00:00
Nick Clifton
e184e98697 Add support for the Z extensions to the s390x architecture. 2021-02-19 13:32:41 +00:00
Nick Clifton
2f53574f32 Fix merging ppc64le notes. 2021-02-18 12:42:56 +00:00
Nick Clifton
e5b60c3bbb Fix some unexpected failures in the linker testsuite which are triggered by the locally applied patches 2021-02-12 14:27:01 +00:00
Nick Clifton
e1785a2a4b Rebase to GNU Binutils 2.36.1. 2021-02-11 13:36:12 +00:00
Nick Clifton
bbafdb8775 Extend vulnerability fix again.
Resolves: #1925779
2021-02-08 13:07:23 +00:00
Nick Clifton
c014d04d53 Preserve debug information in libbfd.a and libopcodes.a.
Resolves: #1924068
2021-02-04 20:29:52 +00:00
Nick Clifton
5cef9601f1 Extend vulnerability fix again.
Resolves: #1913744
2021-02-04 11:18:37 +00:00
Nick Clifton
34f3e5e618 Enable PEP support for all targets.
Resolves: #1920373
2021-02-03 11:57:16 +00:00
Nick Clifton
8bb6c79408 Extend vulnerability fix.
Re4solves: #1913744
2021-02-02 15:42:25 +00:00
Nick Clifton
94c52a6c76 Add support for DWARF-5 sections to the bfd linker's scripts.
Resolves: #1922707
2021-02-01 11:03:26 +00:00
Nick Clifton
1c9437f634 Fix a vulnerability in the smart_rename function.
Resolves: #1913744
2021-01-29 14:55:39 +00:00
Nick Clifton
da81b23637 Fix failures is gas and ld testsuites. 2021-01-28 10:27:32 +00:00
Fedora Release Engineering
90ca16a5d6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 01:09:07 +00:00
Nick Clifton
88880dcb05 Update the BFD library to handle DWARF-5 line number ranges. 2021-01-25 11:53:12 +00:00
Nick Clifton
433c9b01d4 Update the GOLD linker to handle x86 .note.gnu.property sections.
Resolves: #1916925
2021-01-21 19:23:49 +00:00
Nick Clifton
d5e63f6505 Add a fix to gas to automatically enable DWARF-5 style file name tables. 2021-01-18 16:28:08 +00:00
Nick Clifton
0960a4713d Add an option (currently disabled) to build a linker which generates new dtags. 2021-01-15 13:11:49 +00:00
Nick Clifton
c3a1a4ef17 Ensure that bfd.h is the same for i686- and x86_64 versions of the devel rpm.
Resolves: #1915317
2021-01-12 16:34:38 +00:00
Nick Clifton
eeeb57f8ed Fix bug running readelf on an empty file. (#1903448) 2021-01-08 17:48:06 +00:00
Nick Clifton
e056abea7e Fix bug running readelf on a file that cannot be read.
Resolves: #1913589
2021-01-07 14:20:35 +00:00
Nick Clifton
5aee897b5c Fix linking with multiple same-name sections. (PR 27100) 2021-01-04 16:31:41 +00:00
Nick Clifton
4b3b7c0eda Fix linking mixed SHF_LINK_ORDER and non-SHF_LINK_ORDER sections. (#1907945) 2021-01-04 14:24:14 +00:00
Tom Stellard
1c6ed47920 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 22:56:04 +00:00
Florian Weimer
05722a7935 NVR bump for toolchain rebuild 2020-11-26 13:58:42 +01:00
Nick Clifton
0781ec435c Import latest fixes on 2.35 branch 2020-11-25 15:49:04 +00:00
Nick Clifton
b69788edf8 Tweaks for building cross binutils rpms. 2020-11-25 15:00:22 +00:00
Nick Clifton
540feda45b Tweaks to improve cross building 2020-11-10 14:31:42 +00:00
Nick Clifton
7c556a22c9 Add support for DW_FORM_ref8 when parsing DWARF types. 2020-11-10 12:01:43 +00:00
Nick Clifton
9138ef7327 Fix dwarf type handling - again! 2020-11-03 20:03:31 +00:00
Nick Clifton
a4573e9c3e Another correction for plugin as-needed patch. (#1889763) 2020-11-03 13:16:50 +00:00
Nick Clifton
611c7aa70b Another fix for the plugin as-needed problem. 2020-10-30 14:41:16 +00:00
Nick Clifton
63965bc14d Correction for plugin as-needed patch.
Resolves: #1889763
2020-10-29 16:58:38 +00:00
Nick Clifton
b5f49511e0 This time without the debugging 2020-10-29 08:07:17 +00:00
Nick Clifton
a1dc8e2d32 Correction for plugin as-needed patch.
Resolves: #1889763
2020-10-28 21:18:47 +00:00
Nick Clifton
45e67f9ccb Really fix erroneous decoding of LEB128 values.
Resolves: #1891171
2020-10-27 16:59:21 +00:00
Nick Clifton
9051ca66fa Fix erroneous decoding of LEB128 values.
Resolves: #188716
2020-10-21 15:08:45 +01:00
Nick Clifton
842839bbb1 Make readelf and objdump recursively follow debug links. (PR 26595) 2020-10-15 15:11:10 +01:00
Nick Clifton
13a86b8b66 Allow plugin syms to mark as-needed shared libs needed 2020-10-09 13:23:57 +01:00
Nick Clifton
2592e35890 Fix various problems with Power10 support. 2020-10-08 17:08:25 +01:00
Nick Clifton
a04d2461fb Really add the patch to fix strip this time. 2020-10-07 14:42:08 +01:00
Nick Clifton
2c9d39bc55 Fix strip when merging multiple same-named sections.
Resolves: #1885607
2020-10-06 16:58:40 +01:00
Nick Clifton
7e6a1748ba Rebase to GNU Binutils 2.35.1 release.
Retire: binutils-gas-dwarf-level-4.patch
Retire: binutils-aarch64-plt-sh_entsize.patch
Retire: binutils-ppc-rename-xvcvbf16sp-to-xvcvbf16spn.patch
Retire: binutils-dwarf-5-fixes.patch
2020-09-21 11:06:32 +01:00
Nick Clifton
ba80920a4c Fix the PowerPC disassembler so that it ignores annobin symbols. 2020-09-11 11:37:10 +01:00
Nick Clifton
2e0c2015a5 Import fixes from GNU binutils mainline for handling DWARF-5 debug information. 2020-08-25 16:57:53 +01:00
Nick Clifton
d62f898ae7 Rename the PPC xvcvbf16sp instruction to xvcvbf16spn. 2020-08-24 15:12:48 +01:00
Jeff Law
7bb2daa612 Re-enable LTO 2020-07-31 18:39:00 -06:00
Jeff Law
e315473f6c Disable LTO for bootstrapping purposes 2020-07-31 15:25:01 -06:00
Nick Clifton
b22933e83e Fix building with LTO enabled. 2020-07-31 14:35:26 +01:00
Nick Clifton
93bf869662 Set the sh_entsize field of the AArch64's PLT section to 0. (PR 26312) 2020-07-31 08:13:17 +01:00
Richard W.M. Jones
6442193bff Disable LTO again, it causes "ar" to segfault. 2020-07-30 22:31:29 +01:00
Nick Clifton
722dceebdb Fix assembler to default to DWARF level 3 2020-07-30 14:05:32 +01:00
Nick Clifton
a8b0efde87 Default to DWARF level 4 in the assembler. 2020-07-30 09:29:21 +01:00
Fedora Release Engineering
74b3ce8462 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 13:08:28 +00:00
Jeff Law
0af851ae02 Disable LTO for now 2020-07-26 12:02:43 -06:00
Nick Clifton
15a78ff3d8 Rebase to GNU BInutils 2.35
Resolves: #1854613
2020-07-26 11:33:09 +01:00
Nick Clifton
385f20222d Enable debuginfod support. 2020-07-24 19:56:24 +01:00
Jeff Law
426edf4a6e - Fix more configure tests compromised by LTO. 2020-07-20 13:58:21 -06:00
Jeff Law
32bf168f75 - Fix configure test compromised by LTO. Add appropriate BuildRequires
and force rebuliding the configure files in the appropriate dirs
- Fix various warnings exposed by LTO.
2020-07-19 11:35:06 -06:00
Nick Clifton
d8ce39864a Switch to using %autosetup 2020-07-07 10:56:06 +01:00
Nick Clifton
c548afa128 Add BPF support to the s390x target.
Resolves: #1825193
2020-06-16 20:38:14 +01:00
Nick Clifton
347bbd0dc5 Enhance the error message displayed by the BFD library when it fails to load a plugin.
Resolves: #1836618
2020-05-26 14:05:33 +01:00
Nick Clifton
72f99ab293 Rebase to tip of GNU Binutils 2.34 branch, brining in LTO fixes.
Retire: binutils-nm-lto-plugin.patch
2020-05-22 15:50:12 +01:00
Nick Clifton
e8f39243b8 Fix seg fault when loading plugins via symlinks.
Resolves: #1828587
2020-04-28 15:33:47 +01:00
Nick Clifton
07a3e80865 Add support for the BPF target.
Resolves: #1825193
2020-04-20 15:22:40 +01:00
Nick Clifton
beb7b8e936 Fix the plugin support architecture to allow proper symbol info handling. (PR 25355) 2020-02-16 11:34:52 +00:00
Nick Clifton
657e3d5a3e Rebase to GNU Binutils 2.34. (#1793098)
Retire: binutils-improved-note-merging.patch
Retire: binutils-CVE-2019-17451.patch
Retire: binutils-CVE-2019-17450.patch
Retire: binutils-addr2line-fixes.patch
2020-02-02 14:55:39 +00:00
Fedora Release Engineering
bf57373ec8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 12:59:08 +00:00
Nick Clifton
dcf3d266fa Enable 64-bit BFD and PEP support for riscv. 2020-01-23 12:27:30 +00:00
Nick Clifton
7111265a8a Improve the accuracy of addr2line.
Resolves: #1760967
2020-01-02 17:26:12 +00:00
Nick Clifton
07a2a5840d Re-enable strip merging build notes.
Resolves: #1777760
2019-12-02 15:58:13 +00:00
Nick Clifton
c2688f2fa0 Remove spurious code left in gold-mimatched-section-flags patch.
Resolves: #1775750
2019-11-25 12:34:11 +00:00
Nick Clifton
86b5dd655f Fix a buffer overrun in the note merging code.
Resolves: #1774507
2019-11-21 08:10:18 +00:00
Nick Clifton
2ea649d73a Fix a potential seg-fault in the BFD library when parsing pathalogical debug_info sections. (#1771669)
Fix a potential memory exhaustion in the BFD library when parsing corrupt DWARF debug information.  (#1771678)
2019-11-13 12:11:41 +00:00
Nick Clifton
18a3e8b612 Stop objcopy from creating null filled note sections when merging notes. 2019-11-06 22:04:18 +00:00
Nick Clifton
b0bbc38aef Strip: Do not merge notes unless explicitly requested to do so. 2019-11-06 14:00:17 +00:00
Nick Clifton
1a47df5d0d Objcopy: Do not generate a failure exit status if note merging fails.
Relates: #1767937
2019-11-05 12:30:47 +00:00
Nick Clifton
dd47049996 Fix the verification of the installed linker symlink.
Resolves: #1767000
2019-10-30 16:56:10 +00:00
Nick Clifton
11b5d51d94 Improve objdump's ability to merge GNU build attribute notes. 2019-10-28 12:30:39 +00:00
Nick Clifton
31bd4965ad Rebase to GNU Binutils 2.33.1.
- Retire: binutils-CVE-2019-9073.patch
- Retire: binutils-CVE-2019-9074.patch
- Retire: binutils-CVE-2019-9075.patch
- Retire: binutils-CVE-2019-9077.patch
- Retire: binutils-disassembling-efi-files.patch
- Retire: binutils-CVE-2019-9071.patch
- Retire: binutils-gas-build-note-relocs.patch
- Retire: binutils-do-not-warn-about-debuginfo-files.patch
- Retire: binutils-do-not-merge-differing-SHF_EXCLUDE-groups.patch
- Retire: binutils-rh1736114.patch
- Retire: binutils-objcopy-gnu-build-version-notes.patch
- Retire: binutils-CVE-2019-14250.patch
- Retire: binutils-CVE-2019-14444.patch
- Retire: binutils-gcc-10-fixes.patch
- Retire: binutils-remove-old-formats.patch
- Retire: binutils-aarch64-gold-PLT-for-MOVW_ABS.patch
2019-10-14 13:24:26 +01:00
Nick Clifton
70ab9c2b90 Remove support for old file formats (ihex, tekhex, verilog) as they are a constant source of CVEs. 2019-10-04 10:59:30 +01:00
Nick Clifton
6f8976d0f9 Add an option to build using clang instead of gcc. 2019-09-25 16:35:16 +01:00
Nick Clifton
60374778c3 Fix building with gcc-10. 2019-09-24 10:01:17 +01:00
Nick Clifton
6a63423c37 Fix potential integer overflow in readelf.
Resolves:  #1740470
2019-08-13 14:53:31 +01:00
Nick Clifton
79f83cf3ce Fix potential integer overflow in GOLD.
Resolves: #1739491
2019-08-09 14:51:53 +01:00
Nick Clifton
1f0862a7b6 Stop GOLD from seg-faulting on a corrupt input with a fuzzed section offset.
Resolves: #1735605
2019-08-06 15:08:35 +01:00
Nick Clifton
9dc3a9d58c Stop strip from complaining if the first build note is not a version note.
Resolves: #1736114
2019-08-05 17:02:57 +01:00