From 91494b732b28d14af47f5433c6dc904d5d27e0d0 Mon Sep 17 00:00:00 2001 From: Ken Werner Date: Tue, 25 Oct 2011 15:19:49 +0000 Subject: [PATCH] Define GNU and processor specific values for the Phdr p_type field Define GNU and processor specific values for the Phdr p_type field in case they aren't defined by already. Signed-off-by: Ken Werner --- include/libunwind_i.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/libunwind_i.h b/include/libunwind_i.h index 6bbeb3ef..e7110fc9 100644 --- a/include/libunwind_i.h +++ b/include/libunwind_i.h @@ -54,6 +54,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include #include #include +#include #if defined(HAVE_ENDIAN_H) # include @@ -310,6 +311,15 @@ struct elf_image do { (ret) = dwarf_get ((cur), DWARF_MEM_LOC ((cur), (addr)), &(to)); } \ while (0) +/* Define GNU and processor specific values for the Phdr p_type field in case + they aren't defined by . */ +#ifndef PT_GNU_EH_FRAME +# define PT_GNU_EH_FRAME 0x6474e550 +#endif /* !PT_GNU_EH_FRAME */ +#ifndef PT_ARM_EXIDX +# define PT_ARM_EXIDX 0x70000001 /* ARM unwind segment */ +#endif /* !PT_ARM_EXIDX */ + #include "tdep/libunwind_i.h" #ifndef tdep_get_func_addr