]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgcc: Fix eh_frame fast path in find_fde_tail
authorFlorian Weimer <fweimer@redhat.com>
Tue, 6 Jun 2023 09:01:07 +0000 (11:01 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 7 Jun 2023 15:55:20 +0000 (17:55 +0200)
commit49310a993308492348119f4033e4db0bda4fe46a
tree55d751545ff5746e8a5c502abc538b20a5c4b56f
parentb6235dbcfc31434bf3081f3b772dfed96eddd28d
libgcc: Fix eh_frame fast path in find_fde_tail

The eh_frame value is only used by linear_search_fdes, not the binary
search directly in find_fde_tail, so the bug is not immediately
apparent with most programs.

Fixes commit e724b0480bfa5ec04f39be8c7290330b495c59de ("libgcc:
Special-case BFD ld unwind table encodings in find_fde_tail").

libgcc/

PR libgcc/109712
* unwind-dw2-fde-dip.c (find_fde_tail): Correct fast path for
parsing eh_frame.
libgcc/unwind-dw2-fde-dip.c