1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 12:11:45 +02:00
libunwind-eh_elf/src
Konstantin Belousov 2b606faa21 Fix compilation on non-glibc machines.
Commit 297d9cd07d (Fix for failing test-setjmp)
breaks non glibc systems, since __GLIBC_PREREQ is not defined there.
As a consequence, preprocessor aborts with an error.

Trying to hide __GLIBC_PREREQ under #ifdef __GLIBC would require
either code duplication, or moving the longjmp implementation into
the separate file, which is included twice. In fact, I am not sure
in any use of the __GLIBC_PREREQ at the compile time, because the
compiled code can be run on the later version of glibc.

Below is the patch, tested on FreeBSD x86/x86_64 and Scientific Linux 6.1
x86_64. I compile the code always, but keep it in under unused static
symbol. In principle, the code could be optimized out by linker.

[ Minor formatting edits: asharma@fb.com ]
2011-11-30 21:59:09 -08:00
..
arm Call dwarf_step only if CONFIG_DEBUG_FRAME is defined 2011-11-19 15:37:23 -08:00
dwarf Remove unused variable segbase 2011-11-12 10:02:09 -08:00
hppa Fix incorrect calls to memset. 2011-10-02 22:43:28 -07:00
ia64 Fix incorrect calls to memset. 2011-10-02 22:43:28 -07:00
mi Performance optimisations for fast trace. 2011-04-17 20:34:38 -07:00
mips Fix incorrect calls to memset. 2011-10-02 22:43:28 -07:00
ppc During the stack unwinding process, the return address points to 2010-04-24 19:16:09 -07:00
ppc32 Fast back-trace for x86_64 for only collecting the call stack. 2011-03-24 22:33:17 -07:00
ppc64 Fast back-trace for x86_64 for only collecting the call stack. 2011-03-24 22:33:17 -07:00
ptrace Prevent the use of struct dl_phdr_info outside of dl_iterate_phdr 2011-10-29 17:12:43 -07:00
setjmp Fix compilation on non-glibc machines. 2011-11-30 21:59:09 -08:00
unwind GCC compatibility on x86 for C++ exception handling 2010-04-12 12:08:43 -07:00
x86 Fix incorrect calls to memset. 2011-10-02 22:43:28 -07:00
x86_64 Address x86_64 crashes when using sigaltstack 2011-11-27 18:34:38 -08:00
elf32.c Do nothing of UNW_REMOTE_ONLY is defined. 2003-02-15 03:10:30 +00:00
elf32.h Silence warning about symbol redefinition. 2010-03-07 17:27:41 +02:00
elf64.c Do nothing of UNW_REMOTE_ONLY is defined. 2003-02-15 03:10:30 +00:00
elf64.h Silence warning about symbol redefinition. 2010-03-07 17:27:41 +02:00
elfxx.c Improve ELF valid_object() helper 2011-01-23 17:21:04 -08:00
elfxx.h Add module for parsing ARM-specific unwind tables 2011-03-22 08:14:51 -07:00
Makefile.am Bump up the library version 2011-09-10 19:57:59 -07:00
os-freebsd.c Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY 2011-10-15 23:10:28 -07:00
os-hpux.c Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY 2011-10-15 23:10:28 -07:00
os-linux.c Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY 2011-10-15 23:10:28 -07:00
os-linux.h Fix some compiler warnings 2011-10-29 17:18:49 -07:00