summaryrefslogtreecommitdiff
path: root/libelf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-08-07 08:12:22 +0000
committerUlrich Drepper <drepper@redhat.com>2005-08-07 08:12:22 +0000
commitb03b05785914250d53d31e966373617f6104bd9d (patch)
tree2da0e3cec4bb107100824cee10cce599596f5db2 /libelf
parentb944695be7719b6f98c762fe7847245efb3d609b (diff)
downloadelfutils-b03b05785914250d53d31e966373617f6104bd9d.tar.gz
Add support for a few missing DT_ and R_* values.
Import new elf.h.
Diffstat (limited to 'libelf')
-rw-r--r--libelf/ChangeLog4
-rw-r--r--libelf/elf.h12
2 files changed, 16 insertions, 0 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 4a8bc879..aa2a0b11 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-07 Ulrich Drepper <drepper@redhat.com>
+
+ * elf.h: Update from glibc.
+
2005-08-06 Ulrich Drepper <drepper@redhat.com>
* Makefile.am (AM_CFLAGS): Add -fpic when BUILD_STATIC.
diff --git a/libelf/elf.h b/libelf/elf.h
index e246519f..ef9e27cc 100644
--- a/libelf/elf.h
+++ b/libelf/elf.h
@@ -1866,6 +1866,9 @@ typedef Elf32_Addr Elf32_Conflict;
#define LITUSE_ALPHA_TLS_GD 4
#define LITUSE_ALPHA_TLS_LDM 5
+/* Legal values for d_tag of Elf64_Dyn. */
+#define DT_ALPHA_PLTRO (DT_LOPROC + 0)
+#define DT_ALPHA_NUM 1
/* PowerPC specific declarations */
@@ -1976,10 +1979,19 @@ typedef Elf32_Addr Elf32_Conflict;
#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */
#define R_PPC_DIAB_RELSDA_HA 185 /* like EMB_RELSDA, adjusted high 16 */
+/* GNU relocs used in PIC code sequences. */
+#define R_PPC_REL16 249 /* word32 (sym-.) */
+#define R_PPC_REL16_LO 250 /* half16 (sym-.)@l */
+#define R_PPC_REL16_HI 251 /* half16 (sym-.)@h */
+#define R_PPC_REL16_HA 252 /* half16 (sym-.)@ha */
+
/* This is a phony reloc to handle any old fashioned TOC16 references
that may still be in object files. */
#define R_PPC_TOC16 255
+/* PowerPC specific values for the Dyn d_tag field. */
+#define DT_PPC_GOT (DT_LOPROC + 0)
+#define DT_PPC_NUM 1
/* PowerPC64 relocations defined by the ABIs */
#define R_PPC64_NONE R_PPC_NONE