Re: [PATCH] lto: Don't check format of IR dummy file

Alan Modra <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On Fri, Aug 28, 2026 at 09:19:26AM +0800, H.J. Lu wrote:
> 1. Don't check format of IR dummy file in lang_check.
> 2. Allow empty DESTLIST in lang_list_remove_tail.
> 
> 	PR ld/34572
> 	* ldlang.c (lang_check): Don't check format of IR dummy file.
> 	(debug_file_chain): New.
> 	(debug_input_files): Use debug_file_chain.
> 	(lang_list_remove_tail): Also check empty DESTLIST.
> 	* testsuite/ld-plugin/dummy.s: Add .note.GNU-stack section.
> 	* testsuite/ld-plugin/lto.exp: Add PR ld/34572 tests.
> 	* testsuite/ld-plugin/pr34572.rd: New file.
> 	* testsuite/ld-plugin/pr34572a.c: Likewise.
> 	* testsuite/ld-plugin/pr34572b.c: Likewise.

OK with a minor fix.

> +      /* Don't check format of IR dummy file.  */
> +      if ((input_bfd->flags &BFD_PLUGIN) != 0)

Formatting.

-- 
Alan Modra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.