AIX ld allows archives to contain text files by simply ignoring
them and printing a warning.
This patch enables the same behavior for collect2.

gcc/ChangeLog:
2021-05-20  Clément Chigot  <clement.chi...@atos.net>

        * collect2.c (scan_prog_file): Skip none-COFF files instead
        of raising an error.


Maybe the warning message can be changed as it can say that 
an archive is not a COFF file instead of the file inside the archive. 
But I don't know how to handle location files under "po/" afterwards, 
and it was already the case before. 

Please apply if accepted. 

Clément Chigot
ATOS Bull SAS
1 rue de Provence - 38432 Échirolles - France

Attachment: 0001-collect2-avoid-failure-when-passing-text-files-in-an.patch
Description: 0001-collect2-avoid-failure-when-passing-text-files-in-an.patch

Reply via email to