Commit Graph

754 Commits

Author SHA1 Message Date
Nick Clifton
c3cd6c8351 Fix merging strings when linking really big programs. 2023-11-07 10:53:32 +00:00
Nick Clifton
de97bb3603 Allow for x86_64 build environments that use a base ISA of x86-64-v3.
Resolves: #2247296
2023-11-01 17:08:29 +00:00
Nick Clifton
329cf6426e Accept and ignore R_BPF_64_NODYLD32 relocations. (#2245296) 2023-10-30 12:08:11 +00:00
Nick Clifton
e8094f532e Add ability to turn execstack warnings into errors.
Enable warnings for rsx segments.
2023-10-19 14:07:53 +01:00
Nick Clifton
c2d4243912 Fix a potential NULL pointer derefence when parsing corrupt ELF symbol version information. (#2243769) 2023-10-13 12:44:52 +01:00
Nick Clifton
d294fe2ca4 Enable warnings about executable stacks by default. 2023-10-12 12:37:17 +01:00
Nick Clifton
88b4953e8b Fix the GOLD linker's handling of 32-bit PowerPC binaries. (#2234396) 2023-08-25 14:41:23 +01:00
Nick Clifton
13a8e71fad Add fixes for linker testsuite failures for the RISCV-64 target. 2023-08-24 12:26:02 +01:00
Adam Williamson
a74941f97f Bump spec for CI fixes again 2023-08-17 17:51:18 -07:00
Adam Williamson
fcb20d506b Bump release for the CI test fix 2023-08-17 11:50:22 -07:00
Nick Clifton
0b1c8753b9 Rebase to GNU Binutils 2.41. 2023-08-16 08:05:23 +01:00
Fedora Release Engineering
b6cd5a80bd Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 14:37:54 +00:00
Nick Clifton
262733044e Spec File: migrated to SPDX license.
Resolves: #2222113
2023-07-19 09:53:58 +01:00
Nick Clifton
49f3d832d9 Spec File: Change License field to use SPDX notation. (#2222113) 2023-07-17 13:47:30 +01:00
Nikola Kolev
4c53cd0d87 Spec File: use the dist_bug_report_url macro 2023-07-07 17:33:43 +00:00
Nick Clifton
93b20dcdbf Spec File: Add defines to enable rwx and execstack warnings. 2023-06-21 11:20:13 +01:00
Nick Clifton
41f66d24b8 Spec File: Remove debug files from default package.
Resolves: #2208360
2023-05-31 15:48:18 +01:00
Nick Clifton
b2ca1be519 GOLD: Stop an abort triggered by running dwp on a file with no dwo links.
Spec File: Use _prefix.
2023-05-02 15:24:48 +01:00
Nick Clifton
184c1812b1 Spec File: Fix typo. (#2186396)
BFD library: Fix illegal memory access when loading corrupt symbol version info.  (#2186579)
2023-04-17 17:20:54 +01:00
Nick Clifton
d0a86e89e0 Linker: Do not associate allocated reloc sections with the .symtab section.
Resolves: #2166419
2023-03-30 14:18:00 +01:00
Nick Clifton
9fe14c4dd6 Fix version requirement of gprofng package 2023-03-08 18:05:51 +00:00
Nick Clifton
fb35f3c111 Spec file: Rebuild libsframe.a with -fPIC enabled. (#2174841) 2023-03-08 10:11:37 +00:00
Nick Clifton
52ad8b6547 Extend libsframe.a inclusion into libbfd.so 2023-03-08 10:10:28 +00:00
Nick Clifton
f751bb5ce4 Spec file: Add libsframe.a to the (fake) libbfd.so. (#2174841) 2023-03-07 09:32:16 +00:00
Nick Clifton
b094a17b03 Fix testsuite failures for RiscV64 target 2023-02-16 12:54:36 +00:00
Nick Clifton
d8e1d9b57a Rebase to 2.40.
Retire: binutils-package-metadata.patch
Retire: binutils-gas-dwarf-skip-empty-functions.patch
Retire: binutils-CVE-38128-dwarf-abbrev-parsing.patch
Retire: binutils-readelf-no-sections.patch
Retire: binutils-libiberty-configure-compile-warnings.patch
Retire: binutils-CVE-2022-4285.patch
2023-02-14 14:42:20 +00:00
Nick Clifton
6bfd06790b Spec File: Add (disabled by default) support for cross-builds of the binutils. 2023-01-31 11:59:03 +00:00
Fedora Release Engineering
3ac2843cab Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 22:53:34 +00:00
Nick Clifton
66f76524de Speed up objcopy's note merging algorithm. (#29993) 2023-01-18 11:27:31 +00:00
Nick Clifton
7ef644fbf6 Fix a potential dereference of a NULL pointer.
Resolves: #2152946
2022-12-13 16:06:33 +00:00
Nick Clifton
14fb249724 Fix compile time warnings of the configure test files in the libiberty directory. (#2144041) 2022-11-23 15:51:17 +00:00
Nick Clifton
78fe7f4703 Fix configuration of s390x binutils so that it does not include support for extraneous targets.
Resolves: #2139143
2022-11-02 15:27:50 +00:00
Nick Clifton
e27610f6a7 Fix readelf's decoding of files with no sections. (#2131609) 2022-10-03 14:38:13 +01:00
Nick Clifton
dd133b6b81 Stop a potential infinite loop in the binutils DWARF parser.
Resolves: #2122675
2022-08-31 15:50:50 +01:00
Nick Clifton
92265683bf Move gprofng binaries and man pages into the gprofng sub-package 2022-08-16 13:42:16 +01:00
Nick Clifton
4a4bd90398 Rebase to GNU Binutils 2.39.
- Retire: binutils-CVE-2019-1010204.patch
- Retire: binutils-use-long-long.patch
- Retire: binutils-section-type.patch
- Retire: binutils-gas-loc-view.patch
- Retire: binutils-do-not-use-debuginfod.patch
- Retire: binutils-indirect-symbols.patch
- Retire: binutils-s390x-static-PIE.patch
- Retire: binutils-link-following.patch
- Retire: binutils-x86-non-canonical-references.patch
- Retire: binutils-ppc64-DT_RELR-relocs.patch
- Retire: binutils-ppc-gas-machine-directive.patch
2022-08-12 15:22:59 +01:00
Luca Boccassi
44cef29673 Build with jansson when not bootstrapping. 2022-08-10 11:26:47 +01:00
Luca Boccassi
1fb1ae3dd6 Build with jansson when not bootstrapping
Enables automatic validation of --package-metadata
2022-08-04 22:39:25 +01:00
Nick Clifton
9ee9ffc894 Add the --package-metadata option to the linkers. (#2099999) 2022-08-04 13:47:53 +01:00
Nick Clifton
0859b9f54c fix typo 2022-07-28 12:06:36 +01:00
Nick Clifton
17f6d21f57 Fix linker testsuite failure 2022-07-28 10:35:16 +01:00
Nick Clifton
544bea2339 Tweak the PowerPC assembler's handling of the .machine directive.
Resolves: #2111082
2022-07-26 16:36:29 +01:00
Amit Shah
fa2df7c5e7 Check and enable 64-bit bfd on aarch64 and riscv64. 2022-07-26 09:39:35 +01:00
Nick Clifton
1b1ba83846 Restore the use of --enable-64-bit-bfd for the AArch64 and Riscv targets. 2022-07-25 16:56:47 +01:00
Fedora Release Engineering
fc45567d6a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 22:00:00 +00:00
Nick Clifton
fa5c6f55b2 Fix a problem honouring readelf's -wE and -wN command line options. 2022-06-30 15:28:09 +01:00
Nick Clifton
4c13eef881 Fix a problem with PowerPC's handling of DT_RELR relocs. (#2095622)
Move annobin data into a separate debuginfo file.
2022-06-13 13:08:30 +01:00
Nick Clifton
2d6725c1a9 Fix typos which were preventing the linker tests from running 2022-06-08 11:59:39 +01:00
Nick Clifton
fae26da53a Fix use of LDFLAGS 2022-05-28 12:39:19 +01:00
Nick Clifton
15c0289a28 Change the ld man page so that it says that --enable-new-dtags is the default.
Resolves: #2090818
2022-05-27 11:34:21 +01:00
Nick Clifton
97c0e8e507 x86 linker: Disallow invalid relocations against protected symbols. (#2089358) 2022-05-24 12:35:34 +01:00
Nick Clifton
2749aba2e5 Stop readelf and objdump from unnecessarily following links. (#2086863) 2022-05-21 13:11:18 +01:00
Nick Clifton
107db84d77 Fix bug preventing ld testsuite from running 2022-05-19 14:13:15 +01:00
Nick Clifton
b223b873be Add support for generating static PIE binaries for s390x. (#2088331) 2022-05-19 12:21:43 +01:00
Nick Clifton
f02d283cbb Fix description of gold subpackage so that it does not include the Requires fields. (#2082919) 2022-05-12 10:58:15 +01:00
Nick Clifton
c0d31e974b Fix linker testsuite failures 2022-04-05 11:26:53 +01:00
Nick Clifton
467b87538d Fix a bug handling indirect symbols. (PR 28879) (#2068343) 2022-03-30 12:25:35 +01:00
Nick Clifton
6bd3a0b7c2 fix loc view patch 2022-03-10 13:31:23 +00:00
Nick Clifton
4a7c8e040b Add an option to objdump/readelf to disable accessing debuginfod servers.
Resolves: #2051741
2022-03-10 09:42:01 +00:00
Nick Clifton
c074b4afae Simplify the assembler's evaluation of chained .loc view expressions.
Resolves: #2059646
2022-03-09 13:56:31 +00:00
Nick Clifton
d685480361 Do not export any windows tools (if they were built).
Resolves: #2057636
2022-02-28 13:11:07 +00:00
Nick Clifton
b04b2360b7 Add support for specifying a section type in linker scripts.
Resolves: #2052801
2022-02-16 18:04:53 +00:00
Nick Clifton
24c5f0f956 Rebase on GNU Binutils 2.38. 2022-02-10 11:51:11 +00:00
Nick Clifton
c13a28efbc Borrow a patch from the GCC package to stop libtool from inserting needless runpaths into binaries. (#2030667) 2022-01-27 16:47:47 +00:00
Fedora Release Engineering
95c35f80af - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 22:21:08 +00:00
Nick Clifton
9a25c9f346 Fix a potential illegal memory access parsing a COFF format file. (#2033716) 2021-12-20 14:07:45 +00:00
Nick Clifton
14b1fc0e7b Backport upstream patch to allow readelf to recognize packaging metadata note. 2021-12-02 13:21:29 +00:00
Luca Boccassi
a2393deeee Backport upstream patch to allow readelf to recognize packaging metadata note
Will be useful to implement:

https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2021-12-01 17:42:19 +00:00
Nick Clifton
893b61d358 Add support for the EFI format to the AArch64 target.
Resolves: #2027515
2021-12-01 14:52:45 +00:00
Nick Clifton
94be2cd1fb Add ability to warn about multibyte characters in the assembler. (#2018848) 2021-11-19 12:14:31 +00:00
Nick Clifton
5074d55c3d Add changelog entry for latest update 2021-11-16 11:01:54 +00:00
Luca Boccassi
5f97030592 Add BuildRequires: bison, needed to regenerate ld files
Can be dropped after moving to 2.38

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2021-11-15 23:19:30 +00:00
Luca Boccassi
df67e06692 Add upstream patch to allow creating read-only notes from linker scripts
Required to facilitate implementing:

https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2021-11-15 22:28:42 +00:00
Nick Clifton
86336d536a Add ability to show unicode characters to display tools. 2021-11-09 14:19:07 +00:00
Nick Clifton
9e8ef94636 Add upstream patch to use the directory name in .file 0, fixes ccache FTBFS
Resolves: #1996936
2021-10-27 13:19:02 +01:00
Orion Poplawski
ca8ef33300 Add upstream patch to use the directory name in .file 0, fixes ccache FTBFS (bz#1996936) 2021-10-26 20:20:10 -06:00
Timm Bäder
47508dc848 Remove leftover .la files
The rpm included /usr/lib64/libctf-nobfd.la and /usr/lib64/libctf.la via
the libctf* wildcard in %files.
2021-10-26 12:22:18 +02:00
Nick Clifton
92a1236ab3 Fix linker seg-fault compiling efivar libraries.
Resolves: #2012247
2021-10-13 15:23:37 +01:00
Nick Clifton
752fe419ea Fix linker testsuite failures triggered by 2.27-13 patch.
Resolves: #2008203
2021-10-01 11:17:12 +01:00
Nick Clifton
e59cdcdfc5 Default to an entry address of 0 for shared libraries.
Resolves: #2004952
2021-09-17 12:23:04 +01:00
Tom Stellard
73c2d21c11 Disable LTO on arm. (#1918924) 2021-09-14 16:08:12 -07:00
Nick Clifton
75c516c6c2 Enable -separate-code for all architectures, not just x86/x86_64. 2021-09-13 14:46:30 +01:00
Nick Clifton
50232d48dc Allow configuring with autonconf 2.71.
Resolves: #1999437
2021-09-10 10:39:51 +01:00
Nick Clifton
dcb64b3d34 Fix a couple of test failures 2021-08-19 16:29:28 +01:00
Stephen Gallagher
252f93244d
Fix regression breaking Node.js builds
https://sourceware.org/bugzilla/show_bug.cgi?id=28138

https://github.com/nodejs/node/issues/39452

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2021-08-11 10:38:16 -04:00
Nick Clifton
a2d562c07d Ensure that the manual pages are generated. (#1989836) 2021-08-10 18:47:33 +01:00
Nick Clifton
f4ad5792af Fix a local change to readelf which resulted in a success exit code for non-existant files.
Resolves: #1990817
2021-08-10 11:13:56 +01:00
Nick Clifton
01ca902e23 Ensure that dir[0] contains pwd in gas generated DWARF-5 directory tables. (#1966987) 2021-08-09 19:41:14 +01:00
Fedora Release Engineering
d5ffebd3b7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 18:37:30 +00:00
Nick Clifton
9eaca4038a Various fixes for testsuite failures. 2021-07-21 11:40:49 +01:00
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