aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-06-18 14:23:05 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 19:16:29 -0500
commit8e70da3a46abbd5827797ca179bc6748aa544277 (patch)
tree5cf157b5960db7383068ca78ada64f2a44c9229d
parenta624324d76d565493ab1966ef386e2aca174ff0b (diff)
downloadprelink-cross-8e70da3a46abbd5827797ca179bc6748aa544277.tar.gz
prelink-cross-8e70da3a46abbd5827797ca179bc6748aa544277.tar.bz2
prelink-cross-8e70da3a46abbd5827797ca179bc6748aa544277.zip
Fix dwarf symbol table when prelinking on MIPS
2010-06-18 Mark Hatle <mark.hatle@windriver.com> * Sync src/dso-readonly.c and ... * Integrate patch from 2010-05-06 Andrew Stubbs <ams@codesourcery.com> * src/dso.c (adjust_dso): Support MIPS debug sections. * src/prelink.h (SHT_MIPS_DWARF): New define.
-rw-r--r--trunk/ChangeLog.cross10
-rw-r--r--trunk/src/dso-readonly.c1
2 files changed, 11 insertions, 0 deletions
diff --git a/trunk/ChangeLog.cross b/trunk/ChangeLog.cross
index b6c4f5b..3424127 100644
--- a/trunk/ChangeLog.cross
+++ b/trunk/ChangeLog.cross
@@ -1,3 +1,13 @@
+2010-06-18 Mark Hatle <mark.hatle@windriver.com>
+
+ * Sync src/dso-readonly.c and ...
+ * Integrate patch from
+
+ 2010-05-06 Andrew Stubbs <ams@codesourcery.com>
+
+ * src/dso.c (adjust_dso): Support MIPS debug sections.
+ * src/prelink.h (SHT_MIPS_DWARF): New define.
+
2009-06-15 Mark Hatle <mark.hatle@windriver.com>
* Merge to upstream r184
* Resync dso-readonly.c from dso.c
diff --git a/trunk/src/dso-readonly.c b/trunk/src/dso-readonly.c
index 6faebfa..b32fa3c 100644
--- a/trunk/src/dso-readonly.c
+++ b/trunk/src/dso-readonly.c
@@ -1409,6 +1409,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))