https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109712

--- Comment #17 from Thomas Neumann <tneumann at users dot sourceforge.net> ---
The bug was introduced by gcc commit e724b04. It avoids calls to
read_encoded_value_with_base for performance reasons, but unfortunately this
causes the variable eh_frame to be uninitialized if the fast path is taken in
find_fde_tail (unwind-dw2-fde-dip.c).

This is only visible with the gold linker because gold does not provide a
conveniently organized unwind table, with causes the code to fall back to the
slow linear_search_fdes, which uses the (uninitialized) eh_frame value.

Florian, can you fix that? For me it is not obvious how to compute the correct
eh_frame value without calling read_encoded_value_with_base, but you probably
know how to do that.

Reply via email to