GNU Binutils with patches for OS216
Revisión | f2032b672ac5f0c570f3a6d263ce6b764e7dca93 (tree) |
---|---|
Tiempo | 2019-11-19 20:02:42 |
Autor | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2019-11-19 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + PR 24499 | |
4 | + * objcopy.c (copy_file): Ignore --add-gnu-debuglink for archives. | |
5 | + | |
6 | +2019-11-19 Alan Modra <amodra@gmail.com> | |
7 | + | |
3 | 8 | PR 24968 |
4 | 9 | * objcopy.c (copy_object): For ELF output and non-ELF input without |
5 | 10 | arch, take arch from output file if not given by -B. Don't |
@@ -3752,6 +3752,14 @@ copy_file (const char *input_filename, const char *output_filename, | ||
3752 | 3752 | status = 1; |
3753 | 3753 | return; |
3754 | 3754 | } |
3755 | + | |
3756 | + if (gnu_debuglink_filename != NULL) | |
3757 | + { | |
3758 | + non_fatal (_("--add-gnu-debuglink ignored for archive %s"), | |
3759 | + bfd_get_filename (ibfd)); | |
3760 | + gnu_debuglink_filename = NULL; | |
3761 | + } | |
3762 | + | |
3755 | 3763 | /* This is a no-op on non-Coff targets. */ |
3756 | 3764 | set_long_section_mode (obfd, ibfd, long_section_names); |
3757 | 3765 |