Add a helpful linker diagnostic message about missing static libraries.
Resolves: RHEL-69758
This commit is contained in:
parent
cd77192b8b
commit
4c6aaee94b
20
binutils-linker-diagnostic-message.patch
Normal file
20
binutils-linker-diagnostic-message.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
From edd8e9d6c36b08ff89d0c2345015191cf26e8de4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nick Clifton <nickc@redhat.com>
|
||||||
|
Date: Mon, 9 Dec 2024 13:13:38 +0000
|
||||||
|
Subject: [PATCH] Add linker diagnostic message about missing static libraries
|
||||||
|
|
||||||
|
--- binutils.orig/ld/ldfile.c 2025-01-06 12:07:44.535653316 +0000
|
||||||
|
+++ binutils-2.35.2/ld/ldfile.c 2025-01-06 12:55:36.693479042 +0000
|
||||||
|
@@ -464,6 +464,12 @@ ldfile_open_file (lang_input_statement_t
|
||||||
|
else
|
||||||
|
einfo (_("%P: cannot find %s\n"), entry->local_sym_name);
|
||||||
|
|
||||||
|
+ /* Be kind to users who are creating static executables, but
|
||||||
|
+ have forgotten to install the necessary static libraries. */
|
||||||
|
+ if (entry->flags.dynamic == FALSE && strncmp (entry->local_sym_name, "-l", 2) == 0)
|
||||||
|
+ einfo (_("%P: have you installed the static version of the %s library ?\n"),
|
||||||
|
+ entry->local_sym_name + 2);
|
||||||
|
+
|
||||||
|
/* PR 25747: Be kind to users who forgot to add the
|
||||||
|
"lib" prefix to their library when it was created. */
|
||||||
|
for (arch = search_arch_head; arch != NULL; arch = arch->next)
|
@ -2,7 +2,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: binutils%{?_with_debug:-debug}
|
Name: binutils%{?_with_debug:-debug}
|
||||||
Version: 2.35.2
|
Version: 2.35.2
|
||||||
Release: 59%{?dist}
|
Release: 60%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -502,6 +502,10 @@ Patch88: binutils-s390-arch15-15.patch
|
|||||||
Patch89: binutils-s390-arch15-16.patch
|
Patch89: binutils-s390-arch15-16.patch
|
||||||
Patch90: binutils-s390-arch15-gas-tests-fixes.patch
|
Patch90: binutils-s390-arch15-gas-tests-fixes.patch
|
||||||
|
|
||||||
|
# Purpose: Add linker diagnostic message for missing static libraries
|
||||||
|
# Lifetime: Fixed in 2.44
|
||||||
|
Patch91: binutils-linker-diagnostic-message.patch
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
Provides: bundled(libiberty)
|
Provides: bundled(libiberty)
|
||||||
@ -1361,6 +1365,9 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 06 2025 Nick Clifton <nickc@redhat.com> - 2.35.2-60
|
||||||
|
- Add a helpful linker diagnostic message about missing static libraries. (RHEL-69758)
|
||||||
|
|
||||||
* Thu Dec 12 2024 Nick Clifton <nickc@redhat.com> - 2.35.2-59
|
* Thu Dec 12 2024 Nick Clifton <nickc@redhat.com> - 2.35.2-59
|
||||||
- Fix assembler testsuite problems with new s390 tests. (RHEL-50068)
|
- Fix assembler testsuite problems with new s390 tests. (RHEL-50068)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user