logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

0003-unwind-fix-for-musl.patch (1077B)


  1. SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
  2. SPDX-FileCopyrightText: 2015 Gregor Richards <gregor.richards@uwaterloo.ca>
  3. SPDX-FileCopyrightText: 2015 Szabolcs Nagy <szabolcs.nagy@arm.com>
  4. SPDX-License-Identifier: GPL-2.0-or-later
  5. Backported from upstream commit 15aa7b447218e45da835472bbf4740ae00db9982
  6. unwind fix for musl
  7. 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
  8. Szabolcs Nagy <szabolcs.nagy@arm.com>
  9. * unwind-dw2-fde-dip.c (USE_PT_GNU_EH_FRAME): Define it on
  10. Linux if target provides dl_iterate_phdr.
  11. Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com>
  12. From-SVN: r222328
  13. --- gcc-4.7.4/libgcc/unwind-dw2-fde-dip.c
  14. +++ gcc-4.7.4/libgcc/unwind-dw2-fde-dip.c
  15. @@ -53,6 +53,12 @@
  16. # define USE_PT_GNU_EH_FRAME
  17. #endif
  18. +#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  19. + && defined(TARGET_DL_ITERATE_PHDR) \
  20. + && defined(__linux__)
  21. +# define USE_PT_GNU_EH_FRAME
  22. +#endif
  23. +
  24. #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  25. && defined(__FreeBSD__) && __FreeBSD__ >= 7
  26. # define ElfW __ElfN