Re: [PATCH] lto: Don't check format of IR dummy file
"H.J. Lu" <[email protected]>
| Newsgroups | gmane.comp.gnu.binutils |
|---|---|
| Message-ID | <CAMe9rOqieogCJNhFpRUvtnx7v11qU59kAG+N8VymK1MUTzk2-Q@mail.gmail.com> |
On Fri, Aug 28, 2026 at 1:35 PM Alan Modra <[email protected]> wrote: > > 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) Fixed with if ((input_bfd->flags & BFD_PLUGIN) != 0) > Formatting. > > -- > Alan Modra Thanks. -- H.J.