• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiónf2032b672ac5f0c570f3a6d263ce6b764e7dca93 (tree)
Tiempo2019-11-19 20:02:42
AutorAlan Modra <amodra@gmai...>
CommiterAlan Modra

Log Message

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.

Cambiar Resumen

Diferencia incremental

--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
11 2019-11-19 Alan Modra <amodra@gmail.com>
22
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+
38 PR 24968
49 * objcopy.c (copy_object): For ELF output and non-ELF input without
510 arch, take arch from output file if not given by -B. Don't
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -3752,6 +3752,14 @@ copy_file (const char *input_filename, const char *output_filename,
37523752 status = 1;
37533753 return;
37543754 }
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+
37553763 /* This is a no-op on non-Coff targets. */
37563764 set_long_section_mode (obfd, ibfd, long_section_names);
37573765