* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP

if the platform doesn't know about it.
This commit is contained in:
Thiago Jung Bauermann 2012-05-30 19:51:38 +00:00
parent 65f479b6ef
commit 75f62ce7b7
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
* linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
if the platform doesn't know about it.
2012-05-30 Jeff Kenton <jkenton@tilera.com> 2012-05-30 Jeff Kenton <jkenton@tilera.com>
* Makefile.in (SFILES): Add linux-tile-low.c. * Makefile.in (SFILES): Add linux-tile-low.c.

View file

@ -5492,6 +5492,7 @@ get_r_debug (const int pid, const int is_elf64)
if (is_elf64) if (is_elf64)
{ {
Elf64_Dyn *const dyn = (Elf64_Dyn *) buf; Elf64_Dyn *const dyn = (Elf64_Dyn *) buf;
#ifdef DT_MIPS_RLD_MAP
union union
{ {
Elf64_Xword map; Elf64_Xword map;
@ -5507,6 +5508,7 @@ get_r_debug (const int pid, const int is_elf64)
else else
break; break;
} }
#endif /* DT_MIPS_RLD_MAP */
if (dyn->d_tag == DT_DEBUG && map == -1) if (dyn->d_tag == DT_DEBUG && map == -1)
map = dyn->d_un.d_val; map = dyn->d_un.d_val;
@ -5517,6 +5519,7 @@ get_r_debug (const int pid, const int is_elf64)
else else
{ {
Elf32_Dyn *const dyn = (Elf32_Dyn *) buf; Elf32_Dyn *const dyn = (Elf32_Dyn *) buf;
#ifdef DT_MIPS_RLD_MAP
union union
{ {
Elf32_Word map; Elf32_Word map;
@ -5532,6 +5535,7 @@ get_r_debug (const int pid, const int is_elf64)
else else
break; break;
} }
#endif /* DT_MIPS_RLD_MAP */
if (dyn->d_tag == DT_DEBUG && map == -1) if (dyn->d_tag == DT_DEBUG && map == -1)
map = dyn->d_un.d_val; map = dyn->d_un.d_val;