aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-03-02 21:21:50 +0000
committerDaniel Jacobowitz <drow@false.org>2005-03-02 21:21:50 +0000
commit51cb3ca7c846cef1ffb4fe1937b2fba706e677f7 (patch)
treecd21211eb5f75594c8cc317acf161160c0277e4d
parentd35870480f8ee486d74be91cf0b4e99f413cf65a (diff)
downloadgdb-51cb3ca7c846cef1ffb4fe1937b2fba706e677f7.zip
gdb-51cb3ca7c846cef1ffb4fe1937b2fba706e677f7.tar.gz
gdb-51cb3ca7c846cef1ffb4fe1937b2fba706e677f7.tar.bz2
* mips.h: Define MIPS TLS relocations.
-rw-r--r--include/elf/ChangeLog5
-rw-r--r--include/elf/mips.h19
2 files changed, 22 insertions, 2 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index a6e8645..91a81b9 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * mips.h: Define MIPS TLS relocations.
+
2005-02-15 Nigel Stephens <nigel@mips.com>
Maciej W. Rozycki <macro@mips.com>
diff --git a/include/elf/mips.h b/include/elf/mips.h
index a22d990..3a526a9 100644
--- a/include/elf/mips.h
+++ b/include/elf/mips.h
@@ -1,5 +1,6 @@
/* MIPS ELF support for BFD.
- Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003
+ Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003,
+ 2004, 2005
Free Software Foundation, Inc.
By Ian Lance Taylor, Cygnus Support, <ian@cygnus.com>, from
@@ -72,7 +73,21 @@ START_RELOC_NUMBERS (elf_mips_reloc_type)
RELOC_NUMBER (R_MIPS_PJUMP, 35)
RELOC_NUMBER (R_MIPS_RELGOT, 36)
RELOC_NUMBER (R_MIPS_JALR, 37)
- FAKE_RELOC (R_MIPS_max, 38)
+ /* TLS relocations. */
+ RELOC_NUMBER (R_MIPS_TLS_DTPMOD32, 38)
+ RELOC_NUMBER (R_MIPS_TLS_DTPREL32, 39)
+ RELOC_NUMBER (R_MIPS_TLS_DTPMOD64, 40)
+ RELOC_NUMBER (R_MIPS_TLS_DTPREL64, 41)
+ RELOC_NUMBER (R_MIPS_TLS_GD, 42)
+ RELOC_NUMBER (R_MIPS_TLS_LDM, 43)
+ RELOC_NUMBER (R_MIPS_TLS_DTPREL_HI16, 44)
+ RELOC_NUMBER (R_MIPS_TLS_DTPREL_LO16, 45)
+ RELOC_NUMBER (R_MIPS_TLS_GOTTPREL, 46)
+ RELOC_NUMBER (R_MIPS_TLS_TPREL32, 47)
+ RELOC_NUMBER (R_MIPS_TLS_TPREL64, 48)
+ RELOC_NUMBER (R_MIPS_TLS_TPREL_HI16, 49)
+ RELOC_NUMBER (R_MIPS_TLS_TPREL_LO16, 50)
+ FAKE_RELOC (R_MIPS_max, 51)
/* These relocs are used for the mips16. */
FAKE_RELOC (R_MIPS16_min, 100)
RELOC_NUMBER (R_MIPS16_26, 100)