mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
PR24499, ignore --add-gnu-debuglink for archives
objcopy --add-gnu-debuglink=foo.a.dbg foo.a just doesn't make any sense. Who puts executables in archives? PR 24499 * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2019-11-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 24499
|
||||||
|
* objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives.
|
||||||
|
|
||||||
2019-11-19 Alan Modra <amodra@gmail.com>
|
2019-11-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 24968
|
PR 24968
|
||||||
|
@ -3752,6 +3752,14 @@ copy_file (const char *input_filename, const char *output_filename,
|
|||||||
status = 1;
|
status = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gnu_debuglink_filename != NULL)
|
||||||
|
{
|
||||||
|
non_fatal (_("--add-gnu-debuglink ignored for archive %s"),
|
||||||
|
bfd_get_filename (ibfd));
|
||||||
|
gnu_debuglink_filename = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* This is a no-op on non-Coff targets. */
|
/* This is a no-op on non-Coff targets. */
|
||||||
set_long_section_mode (obfd, ibfd, long_section_names);
|
set_long_section_mode (obfd, ibfd, long_section_names);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user