https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- RHEL8 uses gcc 8 which is not affected (unless one uses DTS/GTS). Also, it is unclear for what in particular pahole or what wants to use DW_AT_declaration. DW_TAG_subprogram of a real definition (that hasn't been optimized out) is the one that has DW_AT_low_pc/DW_AT_high_pc or DW_AT_ranges attributes (i.e. has any associated code). Some functions can have many definitions (e.g. inline functions or other comdat entities).