mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
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.
This commit is contained in:
@ -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>
|
2022-10-03 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* readelf.c (get_32bit_section_headers): Return false if the
|
* readelf.c (get_32bit_section_headers): Return false if the
|
||||||
|
@ -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"))
|
if (bfd_get_section_by_name (obfd, ".gnu_debuglink"))
|
||||||
{
|
{
|
||||||
non_fatal (_("%s: debuglink section already exists"),
|
non_fatal (_("%s: debuglink section already exists"),
|
||||||
bfd_get_filename (obfd));
|
bfd_get_filename (ibfd));
|
||||||
gnu_debuglink_filename = NULL;
|
gnu_debuglink_filename = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user