This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Define PT_ARM_EXIDX
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 22 Mar 2005 11:23:58 -0500
- Subject: Re: Define PT_ARM_EXIDX
- References: <20050322155140.GA25312@nevyn.them.org>
On Tue, Mar 22, 2005 at 10:51:40AM -0500, Daniel Jacobowitz wrote:
> The ARM EABI uses a program header to locate exception tables for shared
> objects, just like PT_GNU_EH_FRAME. But the format is a little different,
> and the header is above PT_LOPROC because it was assigned by a processor
> vendor. This just adds the constant to elf/elf.h.
Oops, Ulrich pointed out that I put the constant in the wrong place.
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
* elf/elf.h (PT_ARM_EXIDX): Define.
Index: glibc/elf/elf.h
===================================================================
--- glibc.orig/elf/elf.h 2005-03-22 11:21:34.961464117 -0500
+++ glibc/elf/elf.h 2005-03-22 11:22:49.872172922 -0500
@@ -2138,7 +2138,11 @@ typedef Elf32_Addr Elf32_Conflict;
#define PF_ARM_SB 0x10000000 /* Segment contains the location
addressed by the static base */
+/* Processor specific values for the Phdr p_type field. */
+#define PT_ARM_EXIDX 0x70000001 /* .ARM.exidx segment */
+
/* ARM relocs. */
+
#define R_ARM_NONE 0 /* No reloc */
#define R_ARM_PC24 1 /* PC relative 26 bit branch */
#define R_ARM_ABS32 2 /* Direct 32 bit */