https://sourceware.org/bugzilla/show_bug.cgi?id=32311
Mark Wielaard <mark at klomp dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at sourceware dot org |mark at klomp dot org Ever confirmed|0 |1 Last reconfirmed| |2024-11-05 --- Comment #3 from Mark Wielaard <mark at klomp dot org> --- Created attachment 15779 --> https://sourceware.org/bugzilla/attachment.cgi?id=15779&action=edit Use one getshdr call and a union We could help the compiler a little by just using one call to elf[32|64]_getshdr and reusing the result. Unfortunately I cannot replicate the warning/error even with -flto. Could you try this attached patch? -- You are receiving this mail because: You are on the CC list for the bug.