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

Alan Modra amodra@gmail.com
Fri Aug 28 05:35:18 GMT 2026


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


More information about the Binutils mailing list