public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Fix objcopy's error message when it cannot add a .gnu_debuglink section because the section already
@ 2022-10-12 14:33 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2022-10-12 14:33 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7fd882d4ad91916fd8a05148117f05ea9f5d756c

commit 7fd882d4ad91916fd8a05148117f05ea9f5d756c
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Oct 12 15:32:18 2022 +0100

    Fix objcopy's error message when it cannot add a .gnu_debuglink section because the section already exists.
    
            PR 29665
            * objcopy.c (copy_object): Use the input filename when
            reporting that a .gnu_debuglink section already exists.

Diff:
---
 binutils/ChangeLog | 6 ++++++
 binutils/objcopy.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8690d7811ee..02c667a2762 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-12  Nick Clifton  <nickc@redhat.com>
+
+	PR 29665
+	* objcopy.c (copy_object): Use the input filename when 
+	reporting that a .gnu_debuglink section already exists.
+
 2022-10-03  Nick Clifton  <nickc@redhat.com>
 
 	* readelf.c (get_32bit_section_headers): Return false if the
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index e9be7633464..6ffbdf9c681 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -3074,7 +3074,7 @@ copy_object (bfd *ibfd, bfd *obfd, const bfd_arch_info_type *input_arch)
       if (bfd_get_section_by_name (obfd, ".gnu_debuglink"))
 	{
 	  non_fatal (_("%s: debuglink section already exists"),
-		     bfd_get_filename (obfd));
+		     bfd_get_filename (ibfd));
 	  gnu_debuglink_filename = NULL;
 	}
       else

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-12 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 14:33 [binutils-gdb] Fix objcopy's error message when it cannot add a .gnu_debuglink section because the section already Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).