]> gcc.gnu.org Git - gcc.git/commit
aix: collect2 text files in archive
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 20 May 2021 18:07:18 +0000 (14:07 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 6 Jul 2021 19:12:39 +0000 (15:12 -0400)
commitaa9834c93e25f7d9da2d705bfe6abb271437c74f
tree036c957e9c646ee75ddfcaae13cd17ead4181948
parentcd9fa61d5c89faa8c41ef002b859146df496b1c5
aix: collect2 text files in archive

Rust places text files in archives.  AIX ld ignores such files with a
warning.  The collect2 wrapper for ld had been exiting with a fatal
error if it scanned an archive that contained a non-COFF file.

This patch updates collect2.c to issue a warning and ignore the file
member, matching the behavior of AIX ld.  GCC can encounter archives
created by Rust and should not issue a fatal error.  This changes
fatal_error to warning, with an implicit location and no associated
optimization flag.

gcc/ChangeLog:

2021-05-20  Clement Chigot  <clement.chigot@atos.net>
    David Edelsohn  <dje.gcc@gmail.com>

* collect2.c (scan_prog_file): Issue non-fatal warning for
non-COFF files.

(cherry picked from commit 5a3bf28119c7a8d2d43d26b5eee588ee0e4472e5)
gcc/collect2.c
This page took 0.067559 seconds and 6 git commands to generate.