wine/loader
Martin Storsjö f760976803 ntdll: Add ARM EHABI unwind instructions in assembly functions.
On most ELF platforms on ARM, ARM EHABI is the unwind info
format normally used, instead of DWARF like on most other platforms.

Currently, when unwinding through ELF objects with libunwind, the
libraries don't have any .eh_frame section mapped at runtime (since
DWARF isn't used for unwinding). Instead, what happens is that
libunwind ends up loading .debug_frame from the libraries on disk
instead.

Therefore, currently, ELF unwinding relies on the .so files not being
stripped.

This patch adds the necessary EHABI unwinding instructions in the
assembly functions that currently have DWARF CFI instructions.

EHABI isn't signaled via any specific preprocessor macro, but
is signaled by the absence of other unwind mechanisms (such
as __ARM_DWARF_EH__ and __SEH__, or maybe SjLj).

Mark the asm functions in the preloaders as .cantunwind, to avoid
undefined references to __aeabi_unwind_cpp_pr* functions.

Also mark other assembly functions as .cantunwind; for
signal_exit_thread this is essential if the function is marked
with .fnstart/.fnend - otherwise exiting threads does hang.
(pthread_exit internally calls _Unwind_ForcedUnwind, which would
hang if signal_exit_thread had .fnstart without any matching unwind
info).

This would, in principle, allow unwinding through these functions with
libunwind, for versions of libunwind that can parse the EHABI unwind
info - see e.g.
4d779f55c0.
(This commit isn't yet in any current release AFAIK). Unwinding with
EHABI via libunwind would require a few tweaks to the libunwind interface
usage in unix/signal_arm.c though, since e.g. the unw_get_proc_info call
fails if there's no .eh_frame or .debug_frame available.

Signed-off-by: Martin Storsjö <martin@martin.st>
2022-11-07 10:28:18 +01:00
..
main.c loader: Unbreak FreeBSD builds (ARRAY_SIZE undefined). 2022-10-31 12:11:55 +01:00
main.h
Makefile.in wineusb.sys: Move wineusb.inf into the module resources. 2020-11-11 11:04:40 +01:00
preloader.c ntdll: Add ARM EHABI unwind instructions in assembly functions. 2022-11-07 10:28:18 +01:00
preloader_mac.c configure: Assume that sys/mman.h is available on Unix. 2021-12-09 18:43:51 +01:00
wine.de.UTF-8.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.desktop wine.desktop: Add Turkish translation. 2017-03-24 21:15:23 +01:00
wine.fr.UTF-8.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.inf.in loader/wine.inf: Add runas shell execute verb. 2022-07-19 20:05:47 +02:00
wine.man.in loader: Move WineHQ URLs to https. 2017-12-01 09:22:33 +01:00
wine.pl.UTF-8.man.in loader/wine.pl.UTF-8.man.in: Move WineHQ URL to https. 2017-12-07 19:13:55 +01:00
wine_info.plist.in