diff options
author | kan <kan@FreeBSD.org> | 2015-10-09 18:39:55 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2015-10-09 18:39:55 +0000 |
commit | c85c1e4bd7322c3b4f511e20ad1d6430db0b9ec0 (patch) | |
tree | cd0d7822f055ecf0e30571d9dec11776527742be /contrib/elftoolchain/readelf | |
parent | a3dd461d2defc23a8c22f9c0d1f4671374d9dbad (diff) | |
download | FreeBSD-src-c85c1e4bd7322c3b4f511e20ad1d6430db0b9ec0.zip FreeBSD-src-c85c1e4bd7322c3b4f511e20ad1d6430db0b9ec0.tar.gz |
Add definitions for MIPS TLS relocations to elftoolchain.
This makes our readelf more useful when looking for TLS-related
issues.
Diffstat (limited to 'contrib/elftoolchain/readelf')
-rw-r--r-- | contrib/elftoolchain/readelf/readelf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index 8e4688a..a1e1931 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -1295,6 +1295,20 @@ r_type(unsigned int mach, unsigned int type) case 22: return "R_MIPS_GOTLO16"; case 30: return "R_MIPS_CALLHI16"; case 31: return "R_MIPS_CALLLO16"; + case 38: return "R_MIPS_TLS_DTPMOD32"; + case 39: return "R_MIPS_TLS_DTPREL32"; + case 40: return "R_MIPS_TLS_DTPMOD64"; + case 41: return "R_MIPS_TLS_DTPREL64"; + case 42: return "R_MIPS_TLS_GD"; + case 43: return "R_MIPS_TLS_LDM"; + case 44: return "R_MIPS_TLS_DTPREL_HI16"; + case 45: return "R_MIPS_TLS_DTPREL_LO16"; + case 46: return "R_MIPS_TLS_GOTTPREL"; + case 47: return "R_MIPS_TLS_TPREL32"; + case 48: return "R_MIPS_TLS_TPREL64"; + case 49: return "R_MIPS_TLS_TPREL_HI16"; + case 50: return "R_MIPS_TLS_TPREL_LO16"; + default: return ""; } case EM_PPC: |