[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 5/6] Define GNU and processor specific values f
From: |
Ken Werner |
Subject: |
[Libunwind-devel] [PATCH 5/6] Define GNU and processor specific values for the Phdr p_type field |
Date: |
Thu, 27 Oct 2011 10:38:11 +0200 |
Define GNU and processor specific values for the Phdr p_type field in case
they aren't defined by <elf.h> already.
Signed-off-by: Ken Werner <address@hidden>
---
include/libunwind_i.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/libunwind_i.h b/include/libunwind_i.h
index 6bbeb3e..e7110fc 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 <string.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <elf.h>
#if defined(HAVE_ENDIAN_H)
# include <endian.h>
@@ -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 <elf.h>. */
+#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
--
1.7.5.4
- [Libunwind-devel] [PATCH 0/6] Enhance portability of libuwind, Ken Werner, 2011/10/27
- [Libunwind-devel] [PATCH 1/6] Include <sys/mman.h> to have MAP_ANONYMOUS defined, Ken Werner, 2011/10/27
- [Libunwind-devel] [PATCH 5/6] Define GNU and processor specific values for the Phdr p_type field,
Ken Werner <=
- [Libunwind-devel] [PATCH 6/6] Add missing <signal.h> include directive, Ken Werner, 2011/10/27
- [Libunwind-devel] [PATCH 2/6] UNW_REMOTE_ONLY fixes, Ken Werner, 2011/10/27
- [Libunwind-devel] [PATCH 4/6] [ARM] Add support for systems that don't support ucontext.h, Ken Werner, 2011/10/27
- [Libunwind-devel] [PATCH 3/6] Prevent the use of struct dl_phdr_info outside of dl_iterate_phdr, Ken Werner, 2011/10/27