summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trunk/src/dso.c1
-rw-r--r--trunk/src/prelink.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/trunk/src/dso.c b/trunk/src/dso.c
index 8ad93d3..309aeca 100644
--- a/trunk/src/dso.c
+++ b/trunk/src/dso.c
@@ -1389,6 +1389,7 @@ adjust_dso (DSO *dso, GElf_Addr start, GElf_Addr adjust)
switch (dso->shdr[i].sh_type)
{
case SHT_PROGBITS:
+ case SHT_MIPS_DWARF:
name = strptr (dso, dso->ehdr.e_shstrndx, dso->shdr[i].sh_name);
if (strcmp (name, ".stab") == 0
&& adjust_stabs (dso, i, start, adjust))
diff --git a/trunk/src/prelink.h b/trunk/src/prelink.h
index 741f0a4..bdf6879 100644
--- a/trunk/src/prelink.h
+++ b/trunk/src/prelink.h
@@ -101,6 +101,10 @@ typedef uint8_t Elf64_Byte;
#define DT_MIPS_RWPLT 0x70000034
#endif
+#ifndef SHT_MIPS_DWARF
+#define SHT_MIPS_DWARF 0x7000001e
+#endif
+
#ifndef RSS_UNDEF
#define RSS_UNDEF 0
#endif