diff options
author | Richard Henderson | 2012-03-24 18:47:37 +0100 |
---|---|---|
committer | Blue Swirl | 2012-03-24 20:57:32 +0100 |
commit | abbb3eae1033a5ba6058457336cce9370146d425 (patch) | |
tree | 67e78060727b3c52deb439455ece49cc12ff1de2 | |
parent | tcg: Add debug_info to JIT ELF image. (diff) | |
download | qemu-abbb3eae1033a5ba6058457336cce9370146d425.tar.gz qemu-abbb3eae1033a5ba6058457336cce9370146d425.tar.xz qemu-abbb3eae1033a5ba6058457336cce9370146d425.zip |
tcg: Allow ELF_HOST_FLAGS and ELF_OSABI overrides in gdb-jit.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | tcg/tcg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |