https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102867
--- Comment #3 from Alan Modra <amodra at gmail dot com> --- Not that I'm really complaining about this, note also that the error message referencing "filedata->section_headers + (sizetype)((long unsigned int)i * 80)" is a little bit too much of compiler internal representation leaking out. Nowhere in the source is such an expression used. It's simply "filedata->section_headers + i". BTW, the warnings can be avoided by converting the readelf.c macros to inline functions.