https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113284
--- Comment #6 from Ilya Leoshkevich <iii at linux dot ibm.com> --- Created attachment 57014 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57014&action=edit patch v2 Thanks for the correction. I've noticed the function label and got tunnel vision; .opd does indeed contain no code, but only function and toc pointers, and we don't want that in ASAN reports. Would the attached patch be okay? It's basically your proposal, but with some code reuse.