From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: [RFA] Define DT_MIPS_RLD_MAP if not already defined.
Date: Wed, 30 May 2012 04:40:00 -0000 [thread overview]
Message-ID: <1338352816.3618.5.camel@hactar> (raw)
Hello,
Android doesn't support MIPS, so understandably there's no
DT_MIPS_RLD_MAP in its header files. This patch allows gdbserver to be
compiled for Android.
Maybe it's even an obvious patch...
--
[]'s
Thiago Jung Bauermann
Linaro Toolchain Working Group
2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
* linux-low.c (DT_MIPS_RLD_MAP): Define if not provided by
a system header.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index c015a61..c351d74 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -84,6 +84,10 @@
#endif
#endif
+#ifndef DT_MIPS_RLD_MAP
+#define DT_MIPS_RLD_MAP 0x70000016
+#endif
+
#ifndef HAVE_ELF32_AUXV_T
/* Copied from glibc's elf.h. */
typedef struct
next reply other threads:[~2012-05-30 4:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 4:40 Thiago Jung Bauermann [this message]
2012-05-30 18:03 ` Pedro Alves
2012-05-30 18:36 ` Thiago Jung Bauermann
2012-05-30 18:50 ` Pedro Alves
2012-05-30 19:27 ` Thiago Jung Bauermann
2012-05-30 19:29 ` Pedro Alves
2012-05-30 19:52 ` Thiago Jung Bauermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338352816.3618.5.camel@hactar \
--to=thiago.bauermann@linaro.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox