COFF: avoid modifications over C_FILE filename aux entries.
authorClément Chigot <clement.chigot@atos.net>
Mon, 15 Nov 2021 09:37:36 +0000 (10:37 +0100)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Nov 2021 12:37:11 +0000 (23:07 +1030)
commiteae06bb301512a21277dd48a4bff025c4dceda9e
tree4f5fcc18608ee39d0a4c08d065c9706deeae164e
parentf9402ccaa9fac7858713a7672fae5760ae3d5ce7
COFF: avoid modifications over C_FILE filename aux entries.

Commit e86fc4a5bc37 ("PR 28447: implement multiple parameters for .file
on XCOFF") introduces C_FILE entries which can store additional
information.
However, some modifications are needed by them but not by the original
C_FILE entries, usually representing the filename.
This patch ensures that filename entries are kept as is, in order to
protect targets not supporting the additional entries.

* coffgen.c (coff_write_symbol): Protect filename entries
(coff_write_symbols): Likewise.
(coff_print_symbol): Likewise.
bfd/coffgen.c