https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81307
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Looking at gdb I see though that the block_address_function_relative variable is computed from the object format, so I'm afraid it has to be relative. Another option is to pretend there isn't just one function, but two with the same origin. As -g* options shouldn't affect code generation, we can hardly disable hot/cold partitioning if -gstabs is used.