From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Cc: blauwirbel@gmail.com
Subject: [Qemu-devel] [PATCH 2/4] tcg: Allow ELF_HOST_FLAGS and ELF_OSABI overrides in gdb-jit.
Date: Sat, 24 Mar 2012 10:47:37 -0700 [thread overview]
Message-ID: <1332611259-14940-3-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1332611259-14940-1-git-send-email-rth@twiddle.net>
---
tcg/tcg.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index df4edc0..6b2e429 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -2360,6 +2360,12 @@ static void tcg_register_jit_int(void *buf_ptr, size_t buf_size,
.e_shentsize = sizeof(ElfW(Shdr)),
.e_shnum = ARRAY_SIZE(img->shdr),
.e_shstrndx = ARRAY_SIZE(img->shdr) - 1,
+#ifdef ELF_HOST_FLAGS
+ .e_flags = ELF_HOST_FLAGS,
+#endif
+#ifdef ELF_OSABI
+ .e_ident[EI_OSABI] = ELF_OSABI,
+#endif
},
.phdr = {
.p_type = PT_LOAD,
--
1.7.7.6
next prev parent reply other threads:[~2012-03-24 17:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-24 17:47 [Qemu-devel] [PATCH 0/4] GDB Jit interface, v4 Richard Henderson
2012-03-24 17:47 ` [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image Richard Henderson
2012-03-24 17:47 ` Richard Henderson [this message]
2012-03-24 17:47 ` [Qemu-devel] [PATCH 3/4] tcg-hppa: Add debug_frame support Richard Henderson
2012-03-24 17:47 ` [Qemu-devel] [PATCH 4/4] tcg-sparc: " Richard Henderson
2012-03-24 18:41 ` [Qemu-devel] [PATCH 0/4] GDB Jit interface, v4 Blue Swirl
2012-03-24 19:23 ` Richard Henderson
2012-03-24 21:23 ` Blue Swirl
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=1332611259-14940-3-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).