projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5872bbf
)
tcg: Allow ELF_HOST_FLAGS and ELF_OSABI overrides in gdb-jit.
author
Richard Henderson
<rth@twiddle.net>
Sat, 24 Mar 2012 17:47:37 +0000
(10:47 -0700)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 24 Mar 2012 19:57:32 +0000
(19:57 +0000)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/tcg.c
patch
|
blob
|
history
diff --git
a/tcg/tcg.c
b/tcg/tcg.c
index df4edc08f37cc3d8fbe14c6a340b9c2f2584850f..ab589c7ad262f05eda96b735802bfcdf8a8e0b40 100644
(file)
--- 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,