From patchwork Thu Oct 27 08:38:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 4851 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0B9F123EF7 for ; Thu, 27 Oct 2011 08:38:17 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 02005A1802D for ; Thu, 27 Oct 2011 08:38:16 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so3464822faa.11 for ; Thu, 27 Oct 2011 01:38:16 -0700 (PDT) Received: by 10.223.62.15 with SMTP id v15mr65445851fah.22.1319704696868; Thu, 27 Oct 2011 01:38:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs37908lak; Thu, 27 Oct 2011 01:38:16 -0700 (PDT) Received: by 10.14.17.84 with SMTP id i60mr3672024eei.190.1319704695347; Thu, 27 Oct 2011 01:38:15 -0700 (PDT) Received: from mtagate1.uk.ibm.com (mtagate1.uk.ibm.com. [194.196.100.161]) by mx.google.com with ESMTPS id 71si1340974eeu.117.2011.10.27.01.38.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Oct 2011 01:38:15 -0700 (PDT) Received-SPF: neutral (google.com: 194.196.100.161 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) client-ip=194.196.100.161; Authentication-Results: mx.google.com; spf=neutral (google.com: 194.196.100.161 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) smtp.mail=ken.werner@linaro.org Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9R8cEV5028182 for ; Thu, 27 Oct 2011 08:38:14 GMT Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9R8cEwL1462356 for ; Thu, 27 Oct 2011 09:38:14 +0100 Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9R8cEtN018306 for ; Thu, 27 Oct 2011 02:38:14 -0600 Received: from kiste.boeblingen.de.ibm.com (dyn-9-152-224-38.boeblingen.de.ibm.com [9.152.224.38]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p9R8cCbE018201; Thu, 27 Oct 2011 02:38:14 -0600 From: Ken Werner To: libunwind-devel@nongnu.org Subject: [PATCH 5/6] Define GNU and processor specific values for the Phdr p_type field Date: Thu, 27 Oct 2011 10:38:11 +0200 Message-Id: <1319704692-4464-6-git-send-email-ken.werner@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1319704692-4464-1-git-send-email-ken.werner@linaro.org> References: <1319704692-4464-1-git-send-email-ken.werner@linaro.org> 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 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 #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